Replies: 2 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
-
As a workaround I had to do this, I know it's bad bc it remove fuzzy filters, but in my case I don't need it till now <MaterialReactTable
columns={columns}
data={data}
defaultColumn={{
minSize: 10,
maxSize: 150,
size: 120,
filterFn: "startsWith", // This has no effect whatsoever
}}
filterFns={{
fuzzy: (row, id, filterValue) => { // override the default with startsWidth
return row
.getValue(id)
.toString()
.toLowerCase()
.trim()
.startsWith(filterValue.toString().toLowerCase().trim());
},
}}
/> |
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.
-
I tried this, but it didn't work, any Ideas?
Beta Was this translation helpful? Give feedback.
All reactions