English (United Kingdom)

Displays a standard text area.

type

(string)  Must be equals to textarea.

label

(string)  The label to display next to the field.

help

(string)  An optional text to describe the purpose of the field.

required

(bool)  Whether the field is mandatory or optional.

default

(string)  An optional default text.

value

(string)  The last saved text.

width

(int|string)  The width of the text area. Numbers will be considered as pixel. Otherwise is is possible to manually include the unit to use (eg. "80%").

height

(int|string)  The height of the text area. Numbers will be considered as pixel. Otherwise is is possible to manually include the unit to use (eg. "120px").

id

(string)  An optional field ID.

class

(string)  An optional field class suffix.

hidden

(bool)  True to avoid displaying the label of the field.

[
    'comment' => [
        'type' => 'textarea',
        'label' => 'Comment',
        'value' => 'This is the comment',
        'width' => '100%',
        'height' => '120px',
    ]
]

Changelog

Version Description
1.2.5 Introduced.
Last Update: 2022-03-09
Helpful?
This site uses cookies. By continuing to browse you accept their use. Further information