Interface HasAutocorrect

All Superinterfaces:
HasElement, Serializable
All Known Implementing Classes:
AbstractNumberField, BigDecimalField, EmailField, IntegerField, NumberField, PasswordField, TextArea, TextField, TextFieldBase

public interface HasAutocorrect extends HasElement
Mixin interface for fields with autocorrect attribute.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Name of autocorrect attribute.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Checks if the field has autocorrect enabled.
    default void
    setAutocorrect(boolean autocorrect)
    Enable or disable autocorrect for the field.

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

    getElement
  • Field Details

  • Method Details

    • setAutocorrect

      default void setAutocorrect(boolean autocorrect)
      Enable or disable autocorrect for the field.

      If not set, devices may apply their own defaults.

      Note: This only supported by Safari.

      Parameters:
      autocorrect - true to enable autocorrect, false to disable
    • isAutocorrect

      default boolean isAutocorrect()
      Checks if the field has autocorrect enabled.
      Returns:
      true if the field has autocorrect enabled