Interface HasClearButton

  • All Superinterfaces:
    com.vaadin.flow.component.HasElement, Serializable

    public interface HasClearButton
    extends com.vaadin.flow.component.HasElement
    Mixin 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 boolean isClearButtonVisible()
      Gets the visibility of the button which clears the field, which is false by default.
      default void setClearButtonVisible​(boolean clearButtonVisible)
      Sets the visibility of the button which clears the field.
      • Methods inherited from interface com.vaadin.flow.component.HasElement

        getElement
    • Method Detail

      • isClearButtonVisible

        default boolean isClearButtonVisible()
        Gets the visibility of the button which clears the field, which is false by default.
        Returns:
        true if the button is visible, false otherwise
      • setClearButtonVisible

        default void setClearButtonVisible​(boolean clearButtonVisible)
        Sets the visibility of the button which clears the field.
        Parameters:
        clearButtonVisible - true to show the clear button, false to hide it