T
TanStack2mo ago
afraid-scarlet

how to get current filterFn (filtering algorithm name)

Hi! I need an urgent help! How can i get current filterFn for column? (Current filtering algorithm name) i need to get a filterFn name to send to the server. column?.getFilterFn?(); gives me the function body as far as i understand. column?.getFilterFn?().?name function name here changes during compilation to a shorter one
1 Reply
vicious-gold
vicious-gold2mo ago
Are you using custom filter fns, or only built in ones? My first thought is anyway to extend the ColumnMeta interface with "filterFnName": YourStrictlyTypedFilterFnNames Maybe create and use a creator function that passes in filterFn and filterFnName, to remove possible inconsistencies with filterFn and name.

Did you find this page helpful?