AttributeAutocompleteTrait
This is the 'autocomplete' attribute trait.
This trait has been created to share common code between form elements classes, in this case the declaration of the 'autocomplete' attribute and its set/get methods.
Tags
Table of Contents
$autocomplete | : string | |
---|---|---|
getAutocomplete() | This method returns the current value of the 'autocomplete' attribute. | : string |
setAutocomplete() | This method sets the 'autocomplete' attribute with the given value and returns self. | : self |
Properties
$autocomplete
protected
string
$autocomplete
= \FWK\Core\Form\Elements\Input::AUTOCOMPLETE_OFF
Methods
getAutocomplete()
This method returns the current value of the 'autocomplete' attribute.
public
getAutocomplete() : string
Return values
string —setAutocomplete()
This method sets the 'autocomplete' attribute with the given value and returns self.
public
setAutocomplete(string $autocomplete) : self
Parameters
- $autocomplete : string
-
Valid values: Input::AUTOCOMPLETE_ON, Input::AUTOCOMPLETE_OFF