Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-6553

DOC: Default actions for detail subapps

    XMLWordPrintable

Details

    Description

      There is no need to define default actions for detail subapps:

      subApps:
        detail:
      #    actions:
      #      commit:
      #        $type: commitAction
      #      cancel:
      #        $type: closeAction
          form:
            properties: !override
              - name: jcrName
      

      The default commit action is equivalent to the following configuration:

            commit:
              class: info.magnolia.ui.contentapp.detail.action.SaveDetailSubAppActionDefinition
              browserName: browser
      

      This action saves and closes the detail subapp and selects the edited item in the browser (useful when creating new items). The default browser name is "browser".

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                akhamis Ashraf Khamis
                akhamis Ashraf Khamis
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoR