Class SearchInput

All Implemented Interfaces:
ElementAttributeMethods<HTMLElement,SearchInput>, ElementClassListMethods<HTMLElement,SearchInput>, ElementConsumerMethods<HTMLElement,SearchInput>, ElementContainerMethods<HTMLElement,SearchInput>, ElementEventMethods<HTMLElement,SearchInput>, ElementIdMethods<HTMLElement,SearchInput>, ElementQueryMethods<HTMLElement>, HTMLElementAttributeMethods<HTMLElement,SearchInput>, HTMLElementDataMethods<HTMLElement,SearchInput>, HTMLElementStyleMethods<HTMLElement,SearchInput>, HTMLElementVisibilityMethods<HTMLElement,SearchInput>, IsElement<HTMLElement>, TypedBuilder<HTMLElement,SearchInput>, Component, ComponentIcon<HTMLElement,SearchInput>, HasValue<String>, Validatable<HTMLElement,SearchInput>, Modifiers.Disabled<HTMLElement,SearchInput>, Modifiers.Plain<HTMLElement,SearchInput>

public class SearchInput extends BaseSearchInput<SearchInput>
A search input is a special text input group that adds a clear utility button. The clear button is only visible if the input field is not empty. By default, the clear button clears the input field (w/o firing a change event).

Use BaseSearchInput.noDefaultOnClear() to disable the default clear behavior. You can add additional clear handlers using BaseSearchInput.onClear(ComponentHandler). Use BaseSearchInput.showClearWhen(BiFunction) to control when the clear button is visible.

See Also: