Intercept a Tab change to fire an event

Is there a way to intercept a Tab change to fire an event? I have tabs inside a form, and i want to hide the form save button based on the activeTab. Something like this:
Action::make('save')
->label(__('filament-panels::resources/pages/edit-record.form.actions.save.label'))
->visible(fn () => $this->tab === '-basic-data-tab')
->submit('save'),
Action::make('save')
->label(__('filament-panels::resources/pages/edit-record.form.actions.save.label'))
->visible(fn () => $this->tab === '-basic-data-tab')
->submit('save'),
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?