Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table filter should possibly reset to byDefault value #8645

Open
harbard75 opened this issue Jul 19, 2024 · 0 comments
Open

Table filter should possibly reset to byDefault value #8645

harbard75 opened this issue Jul 19, 2024 · 0 comments

Comments

@harbard75
Copy link

harbard75 commented Jul 19, 2024

What problem does this feature solve?

Filter sometimes must always return a value, especially in case of radio buttons, which often must have one option selected (imagine a "all" option). After clicking on reset, all radio buttons are deselected, making it confusing for the user to know if there is actually something selected for the request. At least an option to fall back to the byDefault value in case of reset should be possible.

What does the proposed API look like?

  1. adding an optional boolean property called for example useDefaultAfterReset on NzTableFilterList. Then after a reset the element with useDefaultAfterReset=true, will be selected.
  2. adding an attribute (nzUseDefaultAfterReset?) on the nzTable. Then after a reset action, all NzTableFilterList with byDefault=true will be selected instead of all being deselected.
  3. Don't show the Reset button if filterMultiple === false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant