TextArea

TextArea is a multi-line text editor field.

Component’s XML-name: textArea.

Basics

TextArea mostly replicates the functionality of the TextField component.

An example of the TextArea:

<textArea id="textArea"
          rows="7"
          caption="Text area with 7 rows"/>
text area

Attributes

TextArea has the following specific attributes:

  • rows - set the number of rows of text. The value of height has priority over the value of rows.

  • wordWrap - set this attribute to false to turn off word wrapping.

Events and Handlers

To generate a handler stub in Jmix Studio, select the component in the screen descriptor XML or in the Jmix UI hierarchy panel and use the Handlers tab of the Jmix UI inspector panel.

Alternatively, you can use the Generate Handler button in the top panel of the screen controller.

ContextHelpIconClickEvent

TextChangeEvent

Validator

See Validator.

ValueChangeEvent

Styles

Styling is identical to TextField component.

TextArea XML Element