Custom Column Filter#
Props#
| Field | Type | Description |
|---|---|---|
options.filtering | boolean | display filter row on table |
columns.filterComponent | React.Element | custom component for filtering |
FilterComponent#
The filterComponent passes these props to hook it to the table internal filtering:
| Field | Type | Description |
|---|---|---|
columnDef | Column | the current column of the filter |
onFilterChanged | (columnId: string, value: any) => void; | the callback for the onChange |
Usage#
Live Demo#
note
See here for more on the GLOBAL_VARS we use in our demos
Live Editor
Result
