Replies: 1 comment 2 replies
-
How about using a single SelectFilter for all filters that you can toggle between? |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
During one of my help-requests I established a feature where a ToggleFilter is able to overwrite any other filter set on a table. I think this would make a great addition to filament in general, since I could see the pattern "give me everything that has parameter X set to exclusively A, only if I tell it otherwise". I use this pattern for "quick-filters" where I don't want the user to be bothered by any other filter.
Since this filter kills all other filters I named it "KillerFilter"... :D Here is it's gist: https://gist.github.com/Husky110/080711a2a17fa3647d0150fe41b22152
Maybe in the main implementation there could be a function like "exclusive" which accepts an array of others filters it should not overwrite or it's a special Toggle-Filter - I don't know.
Just wanted to spread the idea of "exclusive filters". :)
Beta Was this translation helpful? Give feedback.
All reactions