CheckboxFieldDefinition renders a single checkbox. It is a simpler alternative to Option group.

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

Checkbox field properties

Simple checkbox field definition:

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

Node name

Value

 
form


 
tabs


 
tabTtile


 
fields


 
showTitle


 
buttonLabel

Select to display title

 
class

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

 
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.

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels