You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

DEPRECATED

This checkbox field definition has been deprecated since Magnolia 6.0. It is part of the Magnolia 5 UI framework.

For the updated implementation, see Checkbox field for Magnolia 6 UI instead.

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

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

fieldType: checkbox

Checkbox field properties

Simple checkbox field definition:

form:
  tabs:
    - name: tabtitle
      label: Title
      fields:
        - name: showTitle
          fieldType: checkbox
          label: Show title
          buttonLabel: Select to display title

Node name

Value

 
form


 
tabs


 
tabTtile


 
fields


 
showTitle


 
buttonLabel

Select to display title

 
fieldType

checkbox

 
label

Show title

Unable to render {include} The included page could not be found.

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:

Unable to render {include} The included page could not be found.

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