Swap Action Buttons
Hi,
Is there an easy way to swap these modal footer actions postiion "cancel" to be left and "submit" to be right?
Is there an easy way to swap these modal footer actions postiion "cancel" to be left and "submit" to be right?
public function updateTitleAction (): Action
{
return Action::make('updateTitleAction')
->label(__("Update Title"))
->form(function (array $arguments) {
$item = NavigationItem::findOrFail($arguments['id']);
return [
$this->getTextInputField(
column: 'title',
label: __('inputs.title'),
placeholder: __('inputs.title_placeholder'),
)
->autofocus(false)
->default($item->title)
];
})
->badge()
->modalFooterActions(function ($action) {
})
->action(function (array $data, $arguments): void {
$this->updateItemTitle($arguments['id'], $data['title']);
});
}public function updateTitleAction (): Action
{
return Action::make('updateTitleAction')
->label(__("Update Title"))
->form(function (array $arguments) {
$item = NavigationItem::findOrFail($arguments['id']);
return [
$this->getTextInputField(
column: 'title',
label: __('inputs.title'),
placeholder: __('inputs.title_placeholder'),
)
->autofocus(false)
->default($item->title)
];
})
->badge()
->modalFooterActions(function ($action) {
})
->action(function (array $data, $arguments): void {
$this->updateItemTitle($arguments['id'], $data['title']);
});
}