Hello may I know how to re-order the action button in a modal?

Currently its Cancel -> Reject -> Confirm I want it to be Confirm -> Reject -> Cancel please do refer to the image. Thank you in advance!
No description
Solution:
nvm, found the solution ```php ->modalFooterActions(function (Action $action) { return [...
Jump to solution
1 Reply
Solution
Rolland
Rolland4mo ago
nvm, found the solution
->modalFooterActions(function (Action $action) {
return [
$action->getModalSubmitAction()
->color('success'),
$action->makeModalSubmitAction('Reject', ['isReject' => true])
->color('danger'),
$action->getModalCancelAction(),
];
})
->modalFooterActions(function (Action $action) {
return [
$action->getModalSubmitAction()
->color('success'),
$action->makeModalSubmitAction('Reject', ['isReject' => true])
->color('danger'),
$action->getModalCancelAction(),
];
})

Did you find this page helpful?