Skip to main content

Function: useFilterFunc()

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

Defined in: lib/util.ts:283

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

Type Parameters

Type ParameterDefault type
T extends | KubeObjectInterface | KubeEvent | { [key: string]: any; }| KubeObjectInterface | KubeEvent

Parameters

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

Returns

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

(item: T, search?: string) => boolean