Magnolia 5.6 reached end of life on June 25, 2020, see End-of-life policy. A final maintenance release will be announced.

Page tree
Skip to end of metadata
Go to start of metadata

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.CancelDialogActionDefinition

 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.