English (United Kingdom)

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.

value

(string)  The field value attribute.

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.

title

(string)  An optional title attribute.

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)  A custom CSS style to apply to the text input.

pattern

(string)  An optional validation pattern for the typed value.

tabindex

(int)  An optional field tab index.

data

(string)  A string of data- concatenated attributes.

hidden

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

[
    'title' => [
        'type' => 'text',
        'label' => 'Title',
        'value' => 'This is the title',
        'placeholder' => 'Insert title here...',
        'maxlength' => 128,
    ]
]

Changelog

Version Description
1.3 Introduced.
Last Update: 2023-12-19
Helpful?

This website uses cookies

This website uses cookies and similar technologies. Some of these technologies are necessary for the proper functioning of the website (Essential). Other technologies are used to evaluate user behavior (Analysis), to integrate external media or for advertising purposes. If you agree, these technologies are activated. For details, please refer to the privacy policy. From this same page you can also update/revoke your consent. If you do not give your consent, only cookies with essential functions will be activated.

We use technologies from the USA on our website. If you give your consent, you therefore consent at the same time to your data being transferred to the USA. We would like to point out that the USA does not have a level of data protection comparable to that of the EU and that any US company can be obliged by state authorities to hand over your data without you having any effective legal protection against this.