class TextInput extends TextInput implements IValidationInput , IAutocompleteInput

Class TextInput

Traits

Trait StandardValidationTrait.

Properties

string $placeholder HTML placeholder
bool $autocomplete

Methods

Html
showValidation( Html $control)

Modify control in such a way that it explicitly shows its validation state.

__construct($label = NULL, $maxLength = NULL)

No description

bool|null
getAutocomplete($bool)

Gets the state of autocomplete: true=on,false=off,null=omit attribute

setAutocomplete(bool|null $bool)

Turns autocomplete on or off.

getControl()

No description

string
getPlaceholder()

No description

setPlaceholder(string $placeholder)

No description

Details

Html showValidation( Html $control)

Modify control in such a way that it explicitly shows its validation state.

Returns the modified element.

Parameters

Html $control

Return Value

Html

at line 40
__construct($label = NULL, $maxLength = NULL)

Parameters

$label
$maxLength

at line 55
bool|null getAutocomplete($bool)

Gets the state of autocomplete: true=on,false=off,null=omit attribute

Parameters

$bool

Return Value

bool|null

at line 65
IAutocompleteInput setAutocomplete(bool|null $bool)

Turns autocomplete on or off.

Parameters

bool|null $bool null to omit attribute (default)

Return Value

IAutocompleteInput

at line 78
getControl()

at line 98
string getPlaceholder()

Return Value

string

See also

at line 108
TextInput setPlaceholder(string $placeholder)

Parameters

string $placeholder

Return Value

TextInput

See also