Page tree

Magnolia 5.7 reached extended end of life on May 31, 2022. Support for this branch is limited, see End-of-life policy. Please note that to cover the extra maintenance effort, this EEoL period is a paid extension in the life of the branch. Customers who opt for the extended maintenance will need a new license key to run future versions of Magnolia 5.7. If you have any questions or to subscribe to the extended maintenance, please get in touch with your local contact at Magnolia.

Dialog action definitions control what happens when a user clicks buttons in a dialog. In a typical dialog you need at least commit and cancel actions.

Example: Save and Cancel actions in a typical dialog 

<module name>/dialogs/<dialog name>.yaml
actions:
  commit:
    class: info.magnolia.ui.dialog.action.SaveDialogActionDefinition
    label: Save
  cancel:
    class: info.magnolia.ui.dialog.action.CancelDialogActionDefinition
    label: Cancel
Node nameValue

 <dialog name>


 actions


 commit


 class

info.magnolia.ui.dialog.action.SaveDialogActionDefinition

 label

Save

 cancel


 class

info.magnolia.ui.dialog.action.CancelDialogActionDefinition

 label

Cancel

Properties:

<action name>

required

Name of the action.

class

required

Dialog action definition class Save and cancel and definition classes are provided. See Action definition classes.