Interface HasAutocorrect
-
- All Superinterfaces:
HasElement
,Serializable
- All Known Implementing Classes:
AbstractNumberField
,BigDecimalField
,EmailField
,IntegerField
,NumberField
,PasswordField
,TextArea
,TextField
public interface HasAutocorrect extends HasElement
Mixin interface for fields withautocorrect
attribute.
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTOCORRECT_ATTRIBUTE
Name ofautocorrect
attribute.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default boolean
isAutocorrect()
Checks if the field hasautocorrect
enabled.default void
setAutocorrect(boolean autocorrect)
Enable or disableautocorrect
for the field.-
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
-
-
-
-
Field Detail
-
AUTOCORRECT_ATTRIBUTE
static final String AUTOCORRECT_ATTRIBUTE
Name ofautocorrect
attribute.- See Also:
- Constant Field Values
-
-
Method Detail
-
setAutocorrect
default void setAutocorrect(boolean autocorrect)
Enable or disableautocorrect
for the field.If not set, devices may apply their own defaults.
- Parameters:
autocorrect
- true to enableautocorrect
, false to disable
-
isAutocorrect
default boolean isAutocorrect()
Checks if the field hasautocorrect
enabled.- Returns:
- true if the field has
autocorrect
enabled
-
-