Replies: 2 comments
-
Have you found some way how to use globalFilter or not? |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can write you custom global filter like that: const myGlobalFilter: FilterFn<any> = function (
row,
columnId,
filterValue,
addMeta
) {
const value = row.getValue(columnId);
// filter per type
if (typeof value === 'string') return filterFns.includesString(row, columnId, filterValue, addMeta);
if (typeof value === 'number') return filterFns.weakEquals(row, columnId, filterValue, addMeta);
...
} You can do filter per columnId the same way. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
if some of my columns have different values than string, I need to use a custom global filter. see https://codesandbox.io/s/beautiful-roentgen-qoqp65?file=/src/main.tsx
would be helpful to be able to set different global functions per column.
or is there another way?
Beta Was this translation helpful? Give feedback.
All reactions