Interface HasAutocorrect
-
- All Superinterfaces:
com.vaadin.flow.component.HasElement,Serializable
- All Known Implementing Classes:
AbstractNumberField,BigDecimalField,EmailField,IntegerField,NumberField,PasswordField,TextArea,TextField
public interface HasAutocorrect extends com.vaadin.flow.component.HasElementMixin interface for fields withautocorrectattribute.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTOCORRECT_ATTRIBUTEName ofautocorrectattribute.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleanisAutocorrect()Checks if the field hasautocorrectenabled.default voidsetAutocorrect(boolean autocorrect)Enable or disableautocorrectfor the field.
-
-
-
Field Detail
-
AUTOCORRECT_ATTRIBUTE
static final String AUTOCORRECT_ATTRIBUTE
Name ofautocorrectattribute.- See Also:
- Constant Field Values
-
-
Method Detail
-
setAutocorrect
default void setAutocorrect(boolean autocorrect)
Enable or disableautocorrectfor 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 hasautocorrectenabled.- Returns:
- true if the field has
autocorrectenabled
-
-