T
TanStack3y ago
equal-jade

Filtering based on object

Hello, i'm trying to filter this column
columnHelper.accessor(
row =>
`${row.piiData.phonePrefix.phonePrefix} ${row.piiData.phoneNumber}`,
{
id: 'contact',
cell: info => <Contact value={info.getValue()} />,
header: 'Kontakt',
enableSorting: false,
filterFn: 'fuzzy',

}
)
columnHelper.accessor(
row =>
`${row.piiData.phonePrefix.phonePrefix} ${row.piiData.phoneNumber}`,
{
id: 'contact',
cell: info => <Contact value={info.getValue()} />,
header: 'Kontakt',
enableSorting: false,
filterFn: 'fuzzy',

}
)
fuzzy filter is from https://tanstack.com/table/v8/docs/examples/react/filters but it doesn't work, I'm not sure what fuzzy function is getting since for some reason I can't use console.log inside it.
React Table Filters Example | TanStack Table Docs
An example showing how to implement Filters in React Table
1 Reply
equal-jade
equal-jadeOP3y ago
Also it's global filter input, not column filter. I want it to be based on this and one other column that works PLEASE DO PING ME ## when replying, I have a bunch of discord servers so any that I'm not regulary using is muted

Did you find this page helpful?