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')
Was this page helpful?