Magnolia 6.0 reached end of life on June 26, 2019. This branch is no longer supported, see End-of-life policy.
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
fieldType: text
Simple text field definition.
form: tabs: - name: tabText label: Text fields: - name: title fieldType: text label: Title rows: 2 maxLength: 600
Node name | Value |
---|---|
form | |
tabs | |
tabText | |
fields | |
title | |
fieldType | text |
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. |
| optional , default is Number of text rows. |
| optional, default is Maximum number of characters allowed in the field. Value A counter below the field shows how many characters you have left. |