© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
danzzz

Show/Hide Table Columns based on getTabs()

I'm using the getTabs() method to filter records. I wan't to show/hide columns in my Table, based on which tab the user clicked. How can I do this?
Solution
I do it similarly:
  ->visible(fn (HasTable $livewire): bool => $livewire->activeTab !== 'all')
  ->visible(fn (HasTable $livewire): bool => $livewire->activeTab !== 'all')
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Hide a Column based on getTabs() selection
FilamentFFilament / ❓┊help
12mo ago
Show columns based on filters
FilamentFFilament / ❓┊help
3y ago
Show/Hide fields based on selection
FilamentFFilament / ❓┊help
3y ago
show/hide reorder based on conditions?
FilamentFFilament / ❓┊help
3y ago