TextField
TextField
TextField
- Full name: \Gibbon\Forms\Input\TextField
- Parent class: \Gibbon\Forms\Input\Input
Methods
- maxLength — Set a max character count for this text field.
- placeholder — Set the default text that appears before any text has been entered.
- autocomplete — Enables javascript autocompletion from the supplied set of values.
- isUnique
- getLabelContext — Adds uniqueness text to the label description (if not already present)
Inherited from Element
Inherited from Input
- setRow
- addValidationOption
- addValidation
- isValidatable
- hasValidation
- getValidationAsJSON
- getValidationOutput
Inherited from InputAttributesTrait
- setName
- getName
- setValue
- getValue
- loadFrom
- loadFromCSV
- setSize
- getSize
- isDisabled
- setDisabled
- getDisabled
- isRequired
- setRequired
- getRequired
- readonly
- setReadonly
- getReadonly
- setTabIndex
- getTabIndex
Inherited from Element
Inherited from BasicAttributesTrait
- setID
- getID
- setTitle
- getTitle
- setClass
- addClass
- removeClass
- getClass
- addData
- getData
- getAttributeString
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