Testo
Displays a standard input text.
type-
(string) Must be equals to text.
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.
placeholder-
(string) An optional placeholder to display in case of empty value.
maxlength-
(int) An optional attribute to define the maximum length of the text.
id-
(string) An optional field ID.
class-
(string) An optional field class suffix.
hidden-
(bool) True to avoid displaying the label of the field.
disabled-
(bool) True to disable the field.
readonly-
(bool) True to apply the readonly attribute to the field. This will be applied only in case the field is not disabled.
style-
(string) A custom CSS style to apply to the text input.
[
'title' => [
'type' => 'text',
'label' => 'Title',
'value' => 'This is the title',
'placeholder' => 'Insert title here...',
'maxlength' => 128,
]
] Changelog
| Version | Description |
|---|---|
| 1.2.5 | Introduced. |