hidden filter icon on other tabs

hello guys i used gettabs and apply table filter in one tab how remove filter icon from an other tab in filament
7 Replies
Dennis Koch
Dennis Koch11mo ago
I think you can hide all filters based on the current tab. Add ->visible(fn ($livewire) => $livewire->activeTab == 'your_tab') to the filters
Ahmed Ali
Ahmed AliOP11mo ago
yes this work, it hide filter icon from all tabs and appear just when select item in target tab, just i would like it to take the normal behavior in the target tab and hidden from another is this possible?
Dennis Koch
Dennis Koch11mo ago
Don't understand what's the difference between what you want and what it does?
Ahmed Ali
Ahmed AliOP11mo ago
->visible(fn ($livewire) => $livewire->activeTab == 'review')
->visible(fn ($livewire) => $livewire->activeTab == 'review')
i want to hide filter icon in all tabs and make it visible in this tab, the previous code hide filter icon from all tabs and just make it visible when items selected like bulkaction visible when select item.
Dennis Koch
Dennis Koch11mo ago
Not sure why it should happen when using BulkSelect. 🤔
Ahmed Ali
Ahmed AliOP11mo ago
it hedden in all tabs and in target tab visible just when select item exactly like bulkaction visible when select items. yes it visible when using bulkSelect. the normal it should be visible in header of table i'm right?
Dennis Koch
Dennis Koch11mo ago
Yes. As long as there are filters
Want results from more Discord servers?
Add your server