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 Parameter | Default type |
---|---|
T extends KubeObjectInterface | KubeEvent | object | KubeObjectInterface | KubeEvent |
Parameters
Parameter | Type | Description |
---|---|---|
matchCriteria ? | string [] | The JSONPath criteria to match. |
Returns
Function
A filter function that can be used to filter a list of items.
Parameters
Parameter | Type |
---|---|
item | T |
search ? | string |
Returns
boolean