Filter checkbox for 'hidden' records
Can anyone help point me in the direction of some documentation or resource to help with adding an additional checkbox filter to the tables.
I have a boolean field, (isDisabled), to indicate a record is 'hidden\disabled' .
In an ideal world, I'd have a checkbox adjacent to the 'filter' button, defaulted to checked, with a label "Exclude hidden\disabled".
This would introduce the relevant query to exclude the hidden records, and obviously ignore this part of the query when user unchecks.
5 Replies
Two
->label
?
I'm familiar with adding the filters, what I'm trying to achieve is putting the filter checkbox directly on the top of the table, rather than within the Filters button
two labels was a copy/paste fast typo
placing above, you can use filter position
https://filamentphp.com/docs/3.x/tables/filters/layout#displaying-filters-above-the-table-content
Appreciate that, shall get stuck into that.