Skip to main content

Function: useFilterFunc()

function useFilterFunc<T>(matchCriteria?: string[]): (item: T, search?: string) => boolean

Get a function to filter kube resources based on the current global filter state.

Type Parameters

Type ParameterDefault type
T extends KubeObjectInterface | KubeEvent | objectKubeObjectInterface | KubeEvent

Parameters

ParameterTypeDescription
matchCriteria?string[]The JSONPath criteria to match.

Returns

Function

A filter function that can be used to filter a list of items.

Parameters

ParameterType
itemT
search?string

Returns

boolean

Defined in

src/lib/util.ts:160