TextField

TextField

TextField

Methods

Inherited from Element
Inherited from Input
Inherited from InputAttributesTrait
Inherited from Element
Inherited from BasicAttributesTrait

maxLength

Set a max character count for this text field.

TextField::maxLength( string $value = '' ): self

Returns Self: This method can be chained.


placeholder

Set the default text that appears before any text has been entered.

TextField::placeholder( string $value = '' ): self

Returns Self: This method can be chained.


autocomplete

Enables javascript autocompletion from the supplied set of values.

TextField::autocomplete( string|array $value = '' ): self

Returns Self: This method can be chained.


isUnique

TextField::isUnique( $ajaxURL, $data = array() )

getLabelContext

Adds uniqueness text to the label description (if not already present)

TextField::getLabelContext( $label ): string|boolean

Return Value: string|boolean