spotty-amberS
Refine3y ago
12 replies
spotty-amber

How to use `setFilters` from useTable for custom filter buttons?

I I am trying to create a button that can increment or decrement a date value as shown on the screenshot. But I am confused with how can I use the setFilters from useTable hook is there any example code for a reference?

What I want to achieve is whenever user clicks left or right button date should be changed accordingly and update it on the filters date value above and query based on new date.
Screenshot_from_2023-01-17_10-53-09.png
Was this page helpful?