Delete action inside modal - alignment

Did anyone succeed in achieving this kind of layout? I'm tryinf to add delete action inside the edit modal, and I want it like it's in the picture, but I can't get it to be like that.
No description
Solution:
```php Action::make('yourAction') ... ->modalCancelAction(false) ->extraModalFooterActions([...
Jump to solution
3 Replies
BloodDrunk
BloodDrunkOP2mo ago
anyone?
Solution
LeandroFerreira
LeandroFerreira2mo ago
Action::make('yourAction')
...
->modalCancelAction(false)
->extraModalFooterActions([
Action::make('cancel')
->color('gray')
->close(),
Action::make('delete')
->color('danger')
->extraAttributes(['class' => 'sm:ml-auto']),
])
Action::make('yourAction')
...
->modalCancelAction(false)
->extraModalFooterActions([
Action::make('cancel')
->color('gray')
->close(),
Action::make('delete')
->color('danger')
->extraAttributes(['class' => 'sm:ml-auto']),
])
You need to create a custom theme
BloodDrunk
BloodDrunkOP2mo ago
So nice, thanks matew

Did you find this page helpful?