Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: MOTION-157

...

Javadoc resource link
classNameinfo.magnolia.editor.app.field.ExpandingTextFieldDefinition
renderTypeasynchronous
 extends the text field by allowing its height to expand with the increasing amount of text entered until it reaches the value set for the maxRows property. At that point, a scrollbar will appear.

...

Simple expanding text field definition:

title
Localtab Group
Localtab
activetrue
titleYAML file
Code Block
languageyml
authorBio:
  fieldType: expandingText
  rows: 2
  maxRows: 5
#  label: Author biography
#  placeholder: Provide some info about the author ...
Localtab
JCR node
Advanced Tables - Table Plus
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse

Node name

Value

Mgnl n
fields

Mgnl n
authorBio

Mgnl p
fieldType

expandingText

Mgnl p
rows

2

Mgnl p
maxRows

5

Include Page
_referencing Referencing fields shortcut info - 5 UI
_referencing Referencing fields shortcut info - 5 UI

Field-specific properties:

<field name>Name of the field.

maxRows

optional, default is 10

Maximum number of rows to which the field may expand before showing a scrollbar.

rows

optional, default is 1

Number of text rows for the initial state of the field.

This property is defined in TextFieldDefinition.

Common field properties:

Include Page
_Common field properties - 5 UI
_Common field properties - 5 UI