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
public interface HasAutocorrect extends HasElement
Mixin interface for fields with
autocorrect
attribute.
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTOCORRECT_ATTRIBUTE
Name of
autocorrect
attribute.
-
Method Summary
All Methods Modifier and Type Method Description default boolean
isAutocorrect()
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 Detail
-
AUTOCORRECT_ATTRIBUTE
static final String AUTOCORRECT_ATTRIBUTE
Name of
autocorrect
attribute.See Also:
-
-
Method Detail
-
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
-
-