TextInput
class TextInput extends TextBase
Single line text input control.
Methods
__construct(string|Stringable|null $label = null, int|null $maxLength = null)
No description
void
loadHttpData()
Loads HTTP data.
setHtmlType(string $type)
Changes control's type attribute.
Html|string
getControl()
Generates control's HTML element.
addRule(callable|string $validator, string|Stringable|null $errorMessage = null, mixed $arg = null)
Adds a validation rule.
Details
at line 22
__construct(string|Stringable|null $label = null, int|null $maxLength = null)
No description
at line 30
void
loadHttpData()
Loads HTTP data.
at line 39
TextInput
setHtmlType(string $type)
Changes control's type attribute.
at line 49
TextInput
setType(string $type)
deprecated
deprecated
No description
at line 55
Html|string
getControl()
Generates control's HTML element.
at line 64
BaseControl
addRule(callable|string $validator, string|Stringable|null $errorMessage = null, mixed $arg = null)
Adds a validation rule.