Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Localtab Group
Localtab
activetrue
titleYAML
Code Block
languagejs
subApps:
  main: 
    class: info.magnolia.ui.framework.tools.ToolsSubAppDescriptor
    subAppClass: info.magnolia.ui.framework.tools.ToolsSubApp
    tools:
Localtab
titleJCR node
Advanced Tables - Table Plus
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
Node nameValue

Mgnl n
subApps

 


Mgnl n
tools


Mgnl p
class

info.magnolia.ui.framework.tools.ToolsSubAppDescriptor

Mgnl p
subAppClass

info.magnolia.ui.framework.tools.ToolsSubApp

...

Expand
titleClick here to see DashboardToolPresenter
Code Pro
languagejava
firstline1
titleinfo.magnolia.documentation.apps.toolssubapp.presenters.DashboardToolPresenter
linenumberstrue
sections%%(package)%% -
urlhttps://git.magnolia-cms.com/projects/DOCUMENTATION/repos/toolssubapp-example/browse/src/main/java/info/magnolia/documentation/apps/toolssubapp/presenters/DashboardToolPresenter.java?at=master&raw
 

Note:


  • The presenter implements #start which returns the View.
  • The method uses Lambda expression. This is why the example requires Java 8 or higher.

i18n tool

The i18n tool has the value info.magnolia.ui.framework.tools.FormToolDefinition set for the class property. 

Javadoc resource link
rangeHigherVersion5.7
classNameinfo.magnolia.ui.framework.tools.FormToolDefinition
renderTypeasynchronous
(or actually its implementation 
Javadoc resource link
rangeHigherVersion5.7
classNameinfo.magnolia.ui.framework.tools.ConfiguredFormToolDefinition
renderTypeasynchronous
 ) provides a default presenterClass.

...

You typically have to implement your own presenterClass to fulfill your requirements. However, extending FormToolPresenter may be a good starting point.