class TextInput extends TextBase

Single line text input control.

Methods

__construct(string|Stringable|null $label = null, int|null $maxLength = null)

No description

void
loadHttpData()

No description

setHtmlType(string $type)

Changes control's type attribute.

setType(string $type)

No description

Html
getControl()

No description

addRule(callable|string $validator, string|Stringable|null $errorMessage = null, mixed $arg = null)

No description

Details

at line 21
__construct(string|Stringable|null $label = null, int|null $maxLength = null)

No description

Parameters

string|Stringable|null $label
int|null $maxLength

at line 29
void loadHttpData()

No description

Return Value

void

at line 38
TextInput setHtmlType(string $type)

Changes control's type attribute.

Parameters

string $type

Return Value

TextInput

at line 45
TextInput setType(string $type)

No description

Parameters

string $type

Return Value

TextInput

at line 53
Html getControl()

No description

Return Value

Html

at line 63
TextBase addRule(callable|string $validator, string|Stringable|null $errorMessage = null, mixed $arg = null)

No description

Parameters

callable|string $validator
string|Stringable|null $errorMessage
mixed $arg

Return Value

TextBase