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

DEPRECATED

This dialog action definition has been deprecated since Magnolia 6.0. It is part of the Magnolia 5 UI framework.

For the updated implementation, see the actions property in Dialog definition for Magnolia 6 UI instead.

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.