class TextInput extends TextBase

Single line text input control.

Methods

__construct(string|object $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|object $errorMessage = null, $arg = null)

No description

Details

at line 24
__construct(string|object $label = null, int|null $maxLength = null)

No description

Parameters

string|object $label
int|null $maxLength

at line 32
void loadHttpData()

Loads HTTP data.

Return Value

void

at line 42
TextInput setHtmlType(string $type)

Changes control's type attribute.

Parameters

string $type

Return Value

TextInput

at line 53
TextInput setType(string $type) deprecated

deprecated use setHtmlType()

No description

Parameters

string $type

Return Value

TextInput

at line 59
Html|string getControl()

Generates control's HTML element.

Return Value

Html|string

at line 69
BaseControl addRule(callable|string $validator, string|object $errorMessage = null, $arg = null)

No description

Parameters

callable|string $validator
string|object $errorMessage
$arg

Return Value

BaseControl