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 Parameter | Default type |
|---|---|
T extends | KubeObjectInterface | KubeEvent | { [key: string]: any; } | | KubeObjectInterface | KubeEvent |
Parameters
| Parameter | Type | Description |
|---|---|---|
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