Skip to content

How to make filter with simple checkbox using a relationship #1347

Closed Answered by lrljoe
slossetti asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

lrljoe
Sep 5, 2023
Collaborator Sponsor

You must be logged in to vote
0 replies
Answer selected by slossetti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants