How to access filter cancel button event #1455
Unanswered
kunal03052002
asked this question in
Q&A
Replies: 0 comments
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.
-
Use Case:
I'm implementing server-side filtering with custom API calls. When users clear filters using the native cancel button, I need to trigger my updateTableData() function to refetch data from the server.
What I've Tried:
I currently use muiFilterTextFieldProps with a custom InputAdornment to detect cancel clicks:
Current Approach:
The Problem:
This approach overrides MRT's built-in filter mode selector (the startAdornment that shows "contains", "equals", "between" options). I lose all native filter mode functionality when trying to handle cancel events manually.
Questions:
1.Is there a built-in way to access the filter cancel button event?
2. Are there any internal methods or props to handle filter cancellation?
Beta Was this translation helpful? Give feedback.
All reactions