© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
11 replies
harps

GetTabs actions

In a scenario where I'm using soft deletes I have an active and inactive tab but my bulk archive (delete) action shows on both active and inactive header.

Is there a way to only show the archive (delete) action on the active tab?
Solution
This should work
Action::make()
  ->visible(fn ($livewire) => $livewire->activeTab == 'active')
Action::make()
  ->visible(fn ($livewire) => $livewire->activeTab == 'active')
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

getTabs()
FilamentFFilament / ❓┊help
2y ago
getTabs()
FilamentFFilament / ❓┊help
3y ago
getTabs() on custom page?
FilamentFFilament / ❓┊help
2y ago
getTabs() and limiting CreateAction options
FilamentFFilament / ❓┊help
16mo ago