gregnb / gregnb/mui-datatables
How to make a custom reset filters or override the reset button under filters menu
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 906
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I have a question about the reset button in the filters drop down menu.
I want to reset the filters to the default filters I have and not to reset like is happening now.
What happening now is what we have out of the box with the table, when I press reset, all is reset like to 0, without applying any filters.
What I want is to reset to default initial filters I have set it up.
For example I'm filtering by country, and say that I want now to filter by address. Clicking the reset button should roll back to the country filter.
I'm unable to understand from docs how to make something like that.
Thank you for your help :)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading the filters dropdown and reset-button behavior, then check the project documentation for existing customization hooks. The issue names no file or test, so trace how initial filters are stored and how reset currently clears them. Done means the reset action can return to the configured country filter while supporting the described switch to address filtering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100