The expanding text field is provided by the Content Editor module, which is an EE Pro module.
The ExpandingTextFieldDefinition is similar to the placeholder text field and provides an additional property named
maxRows. (Note that this field indirectly extends the text field, which has the
As the name of the field suggests, the field's vertical size expands proportionally with the increasing amount of the text entered, until it reaches the value of the
maxRows property at which point a scroll bar will appear.
Before selecting the field
With the initial number of rows
With the maximum number of rows
With a scroll bar
The field can also be used in a dialog for a component:
It works in exactly the same way as in a Content editor app. (Not showing all states here.)
See Referencing fields for further information.
You can use the placeholder text field properties and the
maxRows property in the field's definition:
|The name of field.|
optional, default is
The maximum number of rows to which the field may expand before showing a scroll bar.
optional , default is
The number of text rows for the initial state of the field.
This property is defined in TextFieldDefinition .