You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.shared.

Interface HasClearButton

    • Method Summary

      All 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.

    • 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