Wildcard filtering #907
-
|
I was looking to add a wildcard filter ... something like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I'm assuming you're asking about our {
id: "my-coiumn",
Header: "My column",
accessor: "my-column",
fieldType: "text",
Filter: tableFilters.TextFilter(),
filter: customFilterFn
},const customFilterFn = React.useCallback((rows, columnIds, filterValue) => {
// do regex here and return the filtered array
return rows;
}, []);For more info, check out react-table-v7 docs: https://react-table-v7.tanstack.com/docs/api/useFilters#usefilters |
Beta Was this translation helpful? Give feedback.
I'm assuming you're asking about our
Tablecomponent. You can pass a function to thefilterfield in the column.For more info, check out react-table-v7 docs: https://react-table-v7.tanstack.com/docs/api/useFilters#usefilters