We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.textfield.
Interface HasAutocorrect
All Superinterfaces:
All Known Implementing Classes:
AbstractNumberField
, BigDecimalField
, EmailField
, IntegerField
, NumberField
, PasswordField
, TextArea
, TextField
, TextFieldBase
Mixin interface for fields with autocorrect
attribute.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault 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
-
AUTOCORRECT_ATTRIBUTE
Name of
autocorrect
attribute.See Also:
-
-
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 enableautocorrect
, false to disable -
isAutocorrect
default boolean isAutocorrect()Checks if the field has
autocorrect
enabled.Returns:
true if the field has
autocorrect
enabled
-