seya
seya
FFilament
Created by seya on 1/28/2024 in #❓┊help
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`'
])
])
1 replies