-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[UX] Add "Clear filters" button to filter #3952
Comments
Hi @vosco88 could you add a screenshot of this issue? Would be a bit easier to understand. It might be fixed in the dev branch already 😄 |
@vosco do you have a mockup of how you would like envision it looking? Ideally two mockups, one with one filter and one with a lot of filters |
@LukeTowers I was envisoning it as something like this quick mockup I do not think I would specify it differently with different amount of filters, but basic idea is you click the button and it clears all applied filters from the list. @w20k it is not an issue per say, more a feture request :) |
@vosco88 Would it be better to add a code block or practical example to the docs, how it could be implemented. I guess you have to call every single filter with 'reset' method (right now). |
@vosco88 I would probably want it at the end, or as a button outside of the filter container Edit: I would agree with @w20k, I don't think it could be made in such a way to be solidly noninvasive by default so an example of how to implement it as a custom button / AJAX handler in the documentation would be ideal. |
Closing as it has been over a month since any activity on this occurred and we are trying to figure out what issues are still relevant. If this is still something that you would like to see through to fruition please respond and we can get the ball rolling. |
Could be also great addition to add |
@w20k clear button on search input is already there |
Not on Number/Text filter scopes. |
This issue will be closed and archived in 3 days, as there has been no activity in the last 30 days. If this issue is still relevant or you would like to see action on it, please respond and we will get the ball rolling. |
Anyone working on this? If not I can try to fix it and make a pull request. |
@robinbonnes do it :) Added it to my todo list, but it's way at the bottom! |
Format in config_filter.yaml: ``` clear: label: Clear filters type: clear ```
This issue will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
@robinbonnes Are you still planning to make that PR sometime? |
I've supplied a screenshot and asked to reopen the PR: #4744 I'm using the following myself in a plugin, to add the clear filter button globally for all lists that have list filters: Add
Add the following to your
Don't forget to change the view path location to your plugin. Also you can add more filter buttons for any use case. |
@robinbonnes Thanks for sharing this, I wasn't aware it was possible to extend the scopes like that. Is this way of extending them documented anywhere? Edit: nevermind, just noticed that you're simply using the |
Also, see my comment regarding a bug. Your sample code would also benefit from the proposed changes outlined there (specifically the |
@LukeTowers and @bennothommo: Can we merge this? |
@robinbonnes Thank you, that help me a lot :) |
Moved to #4744 |
When you have couple of filter scopes with something selected it is a bit annoying to have to click through all of them to clear them.
My suggestion would be to add a button to the filter toolbar that would clear all filters.
I was trying to look on how to approach this as I would like to code it but probably would need some guidance and help. As I am not sure how to approach clearing all.
The text was updated successfully, but these errors were encountered: