How can I add custom footer actions in the edit mode? #47
Answered
by
lukas-frey
p3dro-docplanner
asked this question in
Q&A
-
Hi!! I was doing some investigation and im lost about how to change or add a custom footer actions in the edit mode. Like "delete" de model. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
lukas-frey
Nov 11, 2024
Replies: 1 comment 1 reply
-
Hi, we already provide a delete action in the calendar widget. Simply override the edit action and add it to the modal footer actions like this: public function editAction(): Action
{
return parent::editAction()
->modalFooterActions(fn($action) => [
$action->getModalSubmitAction(), // Keep the submit action
$action->getModalCancelAction(), // Keep the cancel action
$this->deleteAction(), // Add delete action
]);
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lukas-frey
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, we already provide a delete action in the calendar widget. Simply override the edit action and add it to the modal footer actions like this: