Textarea

A textarea field, which auto-resizes and has built-in format buttons.

The textarea field creates a textarea for longer texts with automatic resizing and optional format buttons.

Example

fields:
  text:
    label: Text
    type: textarea

Customizing buttons

You can also specify which buttons to show at the bottom of the textarea field. You can hide the buttons completely by adding buttons: false or only show specific buttons by specifying which one:

fields:
  text:
    label: Text
    type: textarea
    buttons:
      - link
      - email

2.2.3 +

Max and min length

You can control the max and/or min length of the entered text by using the validate option. By adding the validators, a handy indicator of the current text length will be displayed in the upper right corner.

fields:
  name:
    label: Name
    type: text
    validate: 
      minLength: 10
      maxLength: 1000

2.3.2 +

Names of validators

Please note that the names of the validators have been changed from min to minLength and from max to maxLength respectively.
Before 2.3.2, the min and max validators would check for the value of the number if a numeric value is entered. You can still use those if that's the intended behavior.

Result

Screenshot Textarea

Is something missing or incorrect? Edit this page on Github…