Package com.vaadin.flow.component.shared
Interface HasClearButton
-
- All Superinterfaces:
com.vaadin.flow.component.HasElement,Serializable
public interface HasClearButton extends com.vaadin.flow.component.HasElementMixin interface for components that support a clear button.Used to toggle the visibility of the clear button.
- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleanisClearButtonVisible()Gets the visibility of the button which clears the field, which isfalseby default.default voidsetClearButtonVisible(boolean clearButtonVisible)Sets the visibility of the button which clears the field.
-
-
-
Method Detail
-
isClearButtonVisible
default boolean isClearButtonVisible()
Gets the visibility of the button which clears the field, which isfalseby default.- Returns:
trueif the button is visible,falseotherwise
-
setClearButtonVisible
default void setClearButtonVisible(boolean clearButtonVisible)
Sets the visibility of the button which clears the field.- Parameters:
clearButtonVisible-trueto show the clear button,falseto hide it
-
-