TextareaΒΆ
-
/libs/granite/ui/components/foundation/form/textarea
A textarea component.
It extends
Field
component.It has the following content structure:
-
granite:FormTextarea
- granite:FormField
- granite:commonAttrs
- namestring
The name that identifies the field when submitting the form.
- valuestringel
The value of the field.
- emptyTextstring
- i18n
A hint to the user of what can be entered in the field.
- disabledboolean
Indicates if the field is in disabled state.
- requiredboolean
Indicates if the field is mandatory to be filled.
-
autocompletestring
- off
Indicates if the value can be automatically completed by the browser.
See also MDN documentation regarding autocomplete attribute.
- autofocusboolean
The
autofocus
attribute to lets you specify that the field should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form element in a document can have theautofocus
attribute.
- validationstring
- multiple
The name of the validator to be applied. E.g.
foundation.jcr.name
. See validation in Granite UI.
- maxlengthlong
The maximum number of characters (in Unicode code points) that the user can enter.
- colsinteger
The visible width of the text control, in average character widths.
-
rowsinteger
- 5
The number of visible text lines.
-
resize
- none
- none
- both
- horizontal
- vertical
The resizing behaviour.
Note that since it is implemented using CSS
resize
property, it may not work for some browsers.
-
granite:FormTextarea