Skip to content

How can I add custom footer actions in the edit mode? #47

Discussion options

You must be logged in to vote

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
            ]);
    }

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@p3dro-docplanner
Comment options

Answer selected by lukas-frey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants