Change active Tab via callback

Is it possible to change the Tab by dynamic value? I want to use Icons on the front-end to open a form inside a modal and want to show the selected Tab? Maybe something like: $this->form->getComponent('tabCompName')->activeTab(3)
2 Replies
slamx_
slamx_4w ago
No Ideas?
VortexTrumpetHat
Not sure what the context of your use case is, but you may be able to utilize injecting the current livewire component instance in your callback? https://filamentphp.com/docs/3.x/tables/columns/advanced#injecting-the-current-livewire-component-instance I've used this before to determine what the active tab is (e.g. ->hidden(fn ($livewire) => $livewire->activeTab === 'tabName')) but maybe it can be used to set the active tab as well?