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.

A counter below the field shows how many characters you have left.

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