Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updated javadoc macros; typos

...

A dialog definition contains  a form and actions . 

Here's what the configurations do:

...

The configuration is in  /modules/dam-app/apps/assets/chooseDialog :

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse


Node name 

Mgnl n
chooseDialog

 

Mgnl n
actions

 

Mgnl n
commit

 

Mgnl n
cancel

 

Mgnl n
upload

 

Mgnl n
uploadAndEdit

 

Mgnl n
actionArea

 

Mgnl n
secondaryActions

 

Mgnl n
upload

 

Mgnl n
uploadAndEdit

 

Mgnl n
actionRenderers

 

Mgnl n
upload

 

Mgnl p
rendererClass

info.magnolia.dam.app.assets.field.UploadAssetActionRenderer

Mgnl n
uploadAndEdit

 

Mgnl p
rendererClass

info.magnolia.dam.app.assets.field.UploadAndEditActionRenderer


...

actionArea

optional

A secondary action area in the bottom left corner of the editor. Contains the action area configuration.

secondaryActions

required

Add subnodes to match the secondary actions defined in the actions node. The order of the subnodes defines the sequence in which they are rendered. Actions configured under secondaryActions are rendered on the left  and other actions are on the right side.

<actionName>

required

Secondary action name.

actionRenderers

optional

Define a subnode for each action which requires its own renderer.

<actionName>

required

Name of the secondary action.

rendererClass

required

A renderer class if the secondary action requires one. Must implement

Javadoc
className0info.magnolia.ui.dialog.actionarea.renderer.ActionRenderer
renderTypeasynchronous
.

Reusing configuration

Magnolia provides mechanisms to reuse dialogs or more general said to reuse configuration items. See Reusing configuration and Generic tab for a dialog.