T
TanStack16mo ago
conscious-sapphire

change column filter dynamically

I seem to be able to do this for global filters, as well as initialzation time (by setting filterFn in column helper), but I can't figure out how to do it on the fly. Any help appreciated I'm sure this is an easy one.. (BTW looking for custom filter functions here)
2 Replies
conscious-sapphire
conscious-sapphireOP16mo ago
Ok, I never managed to change the actual filter function after initialization, but this helped me understand things a bit more (zzincist comment particularly): https://github.com/TanStack/table/discussions/4133
GitHub
How to add a custom dropdown filter? · TanStack table · Discussion ...
In v7, we could add a custom component for filtering. How can we achieve this in v8? In v7: { ... Filter: CustomSelectColumnFilter, filter: CustomSelectFilter ... }, CustomSelectFilter as: function...
stormy-gold
stormy-gold15mo ago
I was looking for the same option. In each column, i would want to be able to filter on includesString but elsewhere i want to use predefined filters by using filterfn: equalsString. I don't know if its even possible with Tanstack Table though. Did you find a solution?

Did you find this page helpful?