Italian (Italy)

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.

value

(string)  The field value attribute.

placeholder

(string)  An optional placeholder to display in case the value is empty.

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.

readonly

(bool)  True to apply the readonly attribute to the field. This will be applied only in case the field is not disabled.

disabled

(bool)  True to disable the field.

style

(string)  An optional style attribute for the field.

tabindex

(int)  An optional field tab index.

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.3 Introduced.
Ultimo aggiornamento: 2024-01-04
Utile?