filament filters show more
hi, I have a large list of filters in a checkbox list using a table in a livewire component, the filters are currently showing in a modal, but is there a way to show only a few options on each large filter checkbox list and a view more button built into filament, like on Airbnb filters or would I have to make a custom blade view and pull it in? Thanks
Solution:Jump to solution
They can scroll through the select to see all options? It's just taking up less space and requires a click as does the "show more" option
9 Replies
I don't think the checkboxlist has that feature yet.
ah what would you use instead? is there a way i can add a modal button on the slideover and if they click it it shows the checkbox list maybe?
Not sure whether that's possible. Why not use a multiselect if you have so many options?
it would just be easier for the clients to see all the available options laid out, but i will look again at the muti select
Solution
They can scroll through the select to see all options? It's just taking up less space and requires a click as does the "show more" option
@Cushty Plug for my own plugin, but the AdvancedFilters of AdvancedTables can basically do this. You can have some default filters show and the rest available under a “Add Filter” button. It can also do other things (like auto-generate filters for you), but for what you need just copy and paste your existing filters to the ->filters() method, define which default filters show up, and you’re done.
https://filamentphp.com/plugins/kenneth-sese-advanced-tables#adding-custom-filters
Filament
Advanced Tables (formerly Filter Sets) by Kenneth Sese - Filament
Supercharge your tables with powerful features like user customizable views, enhanced filter tabs, reorderable columns, convenient view management, and more. Compatible with Resource Panel Tables, Relation Managers, Table Widgets, and Table Builder!
I think it’s just about a lot of option in the checkbox list 😅
Oh you're absolutely right...didn't read closely enough. 👍
Thanks for the help guys, really appreciated.