You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 21 Next »

DEPRECATED

Expanding text field definition has been deprecated since Magnolia 6.0. It extends info.magnolia.ui.form.field.definition.TextFieldDefinition of Magnolia 5 UI. There is no corresponding implementation that would extend info.magnolia.ui.field.TextFieldDefinition of Magnolia 6 UI.

This field is provided by the Content Editor module, which is a DX Core module.

ExpandingTextFieldDefinition 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.

class: info.magnolia.editor.app.field.ExpandingTextFieldDefinition

fieldType: expandingText

The expanding text field is useful in Content editor apps like the Stories app as shown below.

Before selecting the field:

After selecting the field:

With the initial number of rows:

With the maximum number of rows:

With a scrollbar:

Expanding text field properties

Simple expanding text field definition:

authorBio:
  fieldType: expandingText
  rows: 2
  maxRows: 5
#  label: Author biography
#  placeholder: Provide some info about the author ...

Node name

Value

 
fields


 
authorBio


 
fieldType

expandingText

 
rows

2

 
maxRows

5

Unable to render {include} The included page could not be found.

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:

Unable to render {include} The included page could not be found.

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