Interface HasAutocorrect
- All Superinterfaces:
com.vaadin.flow.component.HasElement,Serializable
- All Known Implementing Classes:
AbstractNumberField,BigDecimalField,EmailField,IntegerField,NumberField,PasswordField,TextArea,TextField,TextFieldBase
public interface HasAutocorrect
extends com.vaadin.flow.component.HasElement
Mixin interface for fields with
autocorrect attribute.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanChecks if the field hasautocorrectenabled.default voidsetAutocorrect(boolean autocorrect) Enable or disableautocorrectfor the field.Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
-
Field Details
-
AUTOCORRECT_ATTRIBUTE
Name ofautocorrectattribute.- See Also:
-
-
Method Details
-
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
-