#
Custom Column Filter#
PropsField | Type | Description |
---|---|---|
options.filtering | boolean | display filter row on table |
columns.filterComponent | React.Element | custom component for filtering |
#
FilterComponentThe 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 Demonote
See here for more on the GLOBAL_VARS
we use in our demos
Live Editor
Result