FilterHandler
Since v0.2.7
Async handler for applying filters on a server.
For server-side filtering, this handler is called when filters change. It should fetch filtered data from the server and return the new rows. The plugin will replace the grid’s rows with the returned data.
type FilterHandler = (filters: FilterModel[], currentRows: TRow[]) => TRow[] | Promise<TRow[]>Example
Section titled “Example”filterHandler: async (filters) => { const params = new URLSearchParams(); filters.forEach(f => params.append(f.field, `${f.operator}:${f.value}`)); const response = await fetch(`/api/data?${params}`); return response.json();}
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt