T
TanStack•7mo ago
extended-salmon

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
extended-salmon
extended-salmonOP•7mo ago
current behavior
No description
extended-salmon
extended-salmonOP•7mo 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?