-
Hi, I need to make a filer with only a checkbox. I want to user the ability to filter by favorites, and I have the following function into my Model, but I want to know how can add a filter for that. ` public function favorites()
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can use a Select Filter for this. You can pass a blank blade to the setCustomFilterLabel() method and it won't have a label anymore (so more what you showed) Alternatively, you could use the configurable areas, entangle it with a public variable, and use that in your builder() method. https://rappasoft.com/docs/laravel-livewire-tables/v2/datatable/configurable-areas A toggle filter is in the works, and it won't be difficult to add a single checkbox option too. It won't be out until later this month tho |
Beta Was this translation helpful? Give feedback.
You can use a Select Filter for this. You can pass a blank blade to the setCustomFilterLabel() method and it won't have a label anymore (so more what you showed)
Alternatively, you could use the configurable areas, entangle it with a public variable, and use that in your builder() method.
https://rappasoft.com/docs/laravel-livewire-tables/v2/datatable/configurable-areas
A toggle filter is in the works, and it won't be difficult to add a single checkbox option too. It won't be out until later this month tho