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.

setType(string $type) deprecated

No description

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

Parameters

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

at line 30
void loadHttpData()

Loads HTTP data.

Return Value

void

at line 39
TextInput setHtmlType(string $type)

Changes control's type attribute.

Parameters

string $type

Return Value

TextInput

at line 49
TextInput setType(string $type) deprecated

deprecated use setHtmlType()

No description

Parameters

string $type

Return Value

TextInput

at line 55
Html|string getControl()

Generates control's HTML element.

Return Value

Html|string

at line 65
BaseControl 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

BaseControl