Enable/disable visibility of individual filters #759
inmanturbo
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
Yeah, I'm definitely for this if you want to implement and throw on the develop branch. I just ask:
I've been working on figuring out how to make the query builder more flexible but I keep running into road blocks because I need to keep it backward compatible. I've been releasing small other improvements as I need them on other projects as well. I also just bought livewire-tables.com so I can get an actual site up with more examples and code (might take a while). Edit: This project is getting a few thousand downloads a day now I think, are we the most popular livewire tables plugin now? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
laravel-livewire-tables
now has support built in for hooking in filters elsewhere in the page usingevents
. It is also possible to hide the defined filters so that you can use your own implementation withHowever there isn't any way to to show some filters and not others. Say you want to add several filters, and you want to implement your own frontend for some but not the others, but you want to utilize the
laravel-livewire-tables
backend api for all of them. the proposed api is something like this:This way developers can also do things like put the filters into the secondary header for some filters but not others ; -)
@rappasoft This feature should not be too difficult to implement and I don't mind doing the work if you're not opposed to it. It's just a single method that sets a boolean property, and a conditional in the view to check for that property, perhaps a couple checkers to make it more fluent like
isVisible()
andisHidden()
Beta Was this translation helpful? Give feedback.
All reactions