Interface HasAutocomplete
-
- All Superinterfaces:
com.vaadin.flow.component.HasElement,Serializable
- All Known Implementing Classes:
AbstractNumberField,BigDecimalField,EmailField,IntegerField,NumberField,PasswordField,TextArea,TextField
public interface HasAutocomplete extends com.vaadin.flow.component.HasElementMixin interface for fields withautocompleteattribute.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTOCOMPLETE_ATTRIBUTEName of @{code autocomplete} attribute.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default AutocompletegetAutocomplete()Gets theAutocompleteoption of the field.default voidsetAutocomplete(Autocomplete autocomplete)Sets theAutocompleteattribute for indicating whether the value of this component can be automatically completed by the browser.
-
-
-
Field Detail
-
AUTOCOMPLETE_ATTRIBUTE
static final String AUTOCOMPLETE_ATTRIBUTE
Name of @{code autocomplete} attribute.- See Also:
- Constant Field Values
-
-
Method Detail
-
setAutocomplete
default void setAutocomplete(Autocomplete autocomplete)
Sets theAutocompleteattribute for indicating whether the value of this component can be automatically completed by the browser.If not set, devices may apply their own defaults.
See autocomplete attribute for more information.
- Parameters:
autocomplete- theautocompletevalue, ornullto unset
-
getAutocomplete
default Autocomplete getAutocomplete()
Gets theAutocompleteoption of the field.- Returns:
- the
autocompletevalue, ornullif not set
-
-