Versions Compared

Key

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

Javadoc resource link
rangeHigherVersion5.7
classNameinfo.magnolia.ui.form.field.definition.CheckboxFieldDefinition
renderTypeasynchronous
renders a single checkbox. It is a simpler alternative to Option group.

Classclassinfo.magnolia.ui.form.field.definition.CheckboxFieldDefinition

...

Localtab Group
Localtab
activetrue
titleYAML file
Code Block
languagejs
form:
  tabs:
    - name: tabtitle
      label: Title
      fields:
        - name: showTitle
          class: info.magnolia.ui.form.field.definition.CheckboxFieldDefinition
          label: Show title
          buttonLabel: Select to display title
Localtab
titleJCR node
Advanced Tables - Table Plus
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse

Node name

Value

Mgnl n
form

 


Mgnl n
tabs

 


Mgnl n
tabTtile

 


Mgnl n
fields

 


Mgnl n
showTitle

 


Mgnl p
buttonLabel

Select to display title

Mgnl p
class

info.magnolia.ui.form.field.definition.CheckboxFieldDefinition

Mgnl p
label

Show title

You can use common field properties and the following properties in a checkbox field definition:

Properties:

<field name>Name of field.

buttonLabel

optional

Label displayed to the right of the checkbox.

(warning) The property is optional in the sense that if you don't want to have the label rendered at all, you have to set an empty string as its value, either in the YAML configuration, or in a message bundle.