I am using a the ->steps() method on an Action, to create a Wizard with a modal action:
use Filament\Forms;
use Filament\Tables\Actions\Action;
Action::make('wizard')
->steps([
Forms\Components\Wizard\Step::make('Step 1')
->schema([
Forms\Components\TextInput::make('foo'),
]),
Forms\Components\Wizard\Step::make('Step 2')
->schema([
Forms\Components\TextInput::make('bar'),
]),
])
I am trying to register an additional footer action to this modal; what I have tried:
Action::make('wizard')
->steps([/* ... */])
->extraModalFooterActions(fn (Action $action): array => [
$action->makeModalSubmitAction('Another', arguments: ['foo' => 'bar']),
]),
->registerModalActions([
Action::make('Another')
]),
Having a dig around, I think I am being "hindered" by the getModalFooterActions() method on the CanOpenModal trait, it appears to ignore the above methods as a result of the modal containing a wizard, so I assume I'm missing a method I should be calling instead?
Any help very much appreciated ❤️