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.admincentral.dialog.action.SaveDialogActionDefinition
    label: Save
  cancel:
    class: info.magnolia.ui.admincentral.dialog.action.CancelDialogActionDefinition
    label: Cancel
Node nameValue

 <dialog name>

 

 actions

 

 commit

 

 class

info.magnolia.ui.admincentral.dialog.action.SaveDialogActionDefinition

 label

Save

 cancel

 

 class

info.magnolia.ui.admincentral.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.