Interface HasAutocomplete

All Superinterfaces:
com.vaadin.flow.component.HasElement, Serializable
All Known Implementing Classes:
AbstractNumberField, BigDecimalField, EmailField, IntegerField, NumberField, PasswordField, TextArea, TextField, TextFieldBase

public interface HasAutocomplete extends com.vaadin.flow.component.HasElement
Mixin interface for fields with autocomplete attribute.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Name of @{code autocomplete} attribute.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Autocomplete
    Gets the Autocomplete option of the field.
    default void
    Sets the Autocomplete attribute for indicating whether the value of this component can be automatically completed by the browser.

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement
  • Field Details

    • AUTOCOMPLETE_ATTRIBUTE

      static final String AUTOCOMPLETE_ATTRIBUTE
      Name of @{code autocomplete} attribute.
      See Also:
  • Method Details

    • setAutocomplete

      default void setAutocomplete(Autocomplete autocomplete)
      Sets the Autocomplete attribute 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 - the autocomplete value, or null to unset
    • getAutocomplete

      default Autocomplete getAutocomplete()
      Gets the Autocomplete option of the field.
      Returns:
      the autocomplete value, or null if not set