can we disable filter icon in table and add button instead of filter form to filter
can we disable filter icon in table and add button instead of filter form to filter
11 Replies
If you don’t need to see the filter indicator then you can use Tabs: https://filamentphp.com/docs/3.x/panels/resources/listing-records#using-tabs-to-filter-the-records
Showing the filter indicator requires the filter to be present on the table which means the filter icon/form has to be on the table as well.
i am using filament v2
Gotcha. Well, sorry to plug my own plugin, but since you’re on v2, #filter-sets kind of does exactly this. You can choose between v3 like tabs (no need for a filter icon), or just easy links to one or more filters. https://filamentphp.com/plugins/kenneth-sese-filter-sets
Filament
Filter Sets by Kenneth Sese - Filament
Let your users combine their filters, searches, column order, and more into convenient and easily accessible filter sets.
Any other way because it is a paid plugin
Saw your other post and you can also disable columns too
Yaa
It’s not imposible…you could check out v3 code for doing tabs and that might get you on the right path.
i am using filament v2 but it v3 tab not working in v2
v3 tab would only work in v3
Right, it won’t work out of the box, but you can dive into the code and adapt to v2. (And I know this is possible, since I did it for my plugin).