Versions Compared

Key

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

...

Include Page
_Field definition classes
_Field definition classes

Form layout

Plain

...

layout 
Status
colourRed
titleDeprecated

With the plain layout, it is not possible to configure anything. Use this layout class when there is no need for customization.

The fully qualified class name of the plain layout is info.magnolia.ui.framework.layout.PlainFormLayoutDefinition. If the definition class is annotated with  ($type alias plain).

Horizontal layout

With the horizontal layout, you can enable or disable spacing between fields in the layout.

The fully qualified class name of the horizontal layout is info.magnolia.ui.framework.layout.LayoutType, you can use the $type alias plain insteadHorizontalLayoutDefinition ($type alias horizontal).

Tabbed layout

With the tabbed layout, you can add or remove tabs and fields. It is not possible to change how any tabs and fields are rendered. Use this layout class when the need for customization is minimal.

The fully qualified class name of the tabbed layout is info.magnolia.ui.framework.layout.TabbedLayoutDefinition. If the definition class is annotated with info.magnolia.ui.framework.layout.LayoutType, you can use the  ($type alias tabbedLayout instead).

Code Block
languageyml
titleExample tabbed layout definition
collapsetrue
layout:
  $type: tabbedLayout
  tabs:
    personal:
      fields:
        - name: salutation
        - name: firstName
        - name: lastName
    details:
      fields:
        - name: email
        - name: phone
    address:
      fields:
        - name: streetAddress
        - name: postalCode
        - name: city
        - name: country

...

The fully qualified class name of the declarative layout is info.magnolia.ui.framework.layout.DeclarativeLayoutDefinition. If the definition class is annotated with info.magnolia.ui.framework.layout.LayoutType, you can use the  ($type alias declarativeLayout instead).

Code Block
languageyml
titleExample declarative layout definition
collapsetrue
layout:
  $type: declarativeLayout
  template: /contacts/layouts/edit-contact.html

...