Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: removing adv table

...

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

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

fieldType: checkbox

Table of Contents

Checkbox field properties

Simple checkbox field definition:

js
title
enableSorting
Localtab Group
Localtab
activetrue
titleYAML file
Code Block
language
yml
form:
  tabs:
    - name: tabtitle
      label: Title
      fields:
        - name: showTitle
          fieldType: checkbox
          label: Show title
          buttonLabel: Select to display 
title
Localtab
JCR node
Advanced Tables - Table Plus
enableHeadingAttributesfalse
false
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
fieldType

checkbox

Mgnl p
label

Show title


Include Page
_referencing Referencing fields shortcut info - 5 UI
_referencing Referencing fields shortcut info - 5 UI

Field-specific 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.

Common field properties:

Include Page
_Common field properties - 5 UI
_Common field properties - 5 UI