F
Filament11mo ago
seya

Action to change active form tab

I wanted to make a Wizard-like Tabs with next and previous buttons, how do I do this? The reason I use tabs is because it's more simple and I can use badges. My current solution is to add on-click listener on the button, but pressing enter will just submit the form
Actions::make([
Actions\Action::make('next')
->extraAttributes([
'x-on:click' => 'tab = `-name-tab`'
])
])
Actions::make([
Actions\Action::make('next')
->extraAttributes([
'x-on:click' => 'tab = `-name-tab`'
])
])
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server