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)
No description
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 65
BaseControl
addRule(callable|string $validator, string|Stringable|null $errorMessage = null, mixed $arg = null)
No description