T
TanStack•10mo ago
wise-white

How to make composite filtering?

On status active + pending I want to include rows that have either of that and not a row that includes both (In my case that isnt possible result). I couldnt find anything like that in example, Help 🙂
No description
2 Replies
wise-white
wise-whiteOP•10mo ago
current behavior
No description
wise-white
wise-whiteOP•10mo ago
resolved by adding these to filter columns:
filterFn: (row, columnId, filterValue: string[]) => {
const value = row.getValue(columnId) as string;
return filterValue.includes(value);
},
filterFn: (row, columnId, filterValue: string[]) => {
const value = row.getValue(columnId) as string;
return filterValue.includes(value);
},

Did you find this page helpful?