Page tree
Skip to end of metadata
Go to start of metadata

TextFieldDefinition  renders an editable Text field. When the rows property is 1 or unspecified, Magnolia renders an HTML input element of type text. When rows is greater than 1, Magnolia renders a textarea.

Class: info.magnolia.ui.form.field.definition.TextFieldDefinition

Text field properties

Simple text field definition. 

form:
  tabs:
    - name: tabText
      label: Text
      fields:
        - name: title
          class: info.magnolia.ui.form.field.definition.TextFieldDefinition
          label: Title
          rows: 2
          maxLength: 600

Node name

Value

 form


 tabs


 tabText


 fields


 title


 class

info.magnolia.ui.form.field.definition.TextFieldDefinition

 label

Title

 maxLength

600

 rows

2

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

Properties:

<field name>Name of field.

rows

optional , default is 1

Number of text rows.

maxLength

optional, default is -1

Maximum number of characters allowed in the field. Value -1 means unlimited.

  • No labels