Class BaseSearchInput<T extends BaseSearchInput<T>>
java.lang.Object
org.patternfly.component.BaseComponent<HTMLElement, T>
org.patternfly.component.textinputgroup.BaseTextInputGroup<T>
org.patternfly.component.textinputgroup.BaseSearchInput<T>
- All Implemented Interfaces:
ElementAttributeMethods<HTMLElement, T>, ElementClassListMethods<HTMLElement, T>, ElementConsumerMethods<HTMLElement, T>, ElementContainerMethods<HTMLElement, T>, ElementEventMethods<HTMLElement, T>, ElementIdMethods<HTMLElement, T>, ElementQueryMethods<HTMLElement>, HTMLElementAttributeMethods<HTMLElement, T>, HTMLElementDataMethods<HTMLElement, T>, HTMLElementStyleMethods<HTMLElement, T>, HTMLElementVisibilityMethods<HTMLElement, T>, IsElement<HTMLElement>, TypedBuilder<HTMLElement, T>, Component, ComponentIcon<HTMLElement, T>, HasValue<String>, Validatable<HTMLElement, T>, Modifiers.Disabled<HTMLElement, T>, Modifiers.Plain<HTMLElement, T>
- Direct Known Subclasses:
BaseFilterInput, SearchInput
-
Method Summary
Modifier and TypeMethodDescriptionRemoves the default behavior when the component is cleared.onClear(ComponentHandler<T> onClear) Adds a handler to be executed when the clear action is pressed.showUtilitiesIf(BiFunction<T, String, Boolean> visibility) Sets the visibility condition for the utility button.Same as value(value, false)Methods inherited from class BaseTextInputGroup
add, addUtilities, applyTo, disabled, icon, input, onChange, onKeyup, placeholder, removeIcon, resetValidation, utilities, validated, valueMethods inherited from class BaseComponent
componentType, element, registerComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ComponentIcon
iconMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface HTMLElementVisibilityMethods
hiddenMethods inherited from interface Modifiers.Disabled
disabled, isDisabledMethods inherited from interface Modifiers.Plain
plain, plainMethods inherited from interface TypedBuilder
that
-
Method Details
-
noDefaultOnClear
Removes the default behavior when the component is cleared. By default, the clear button clears the input field (w/o firing a change event). -
showUtilitiesIf
Sets the visibility condition for the utility button. By default, the button is visible when the input field is not empty. The providedBiFunctiondetermines whether the utility should be visible based on the currentSearchInputinstance and aStringvalue.- Parameters:
visibility- aBiFunctionthat takes theSearchInputinstance and aStringvalue as arguments and returns aBooleanindicating whether the utility should be visible.
-
onClear
Adds a handler to be executed when the clear action is pressed.- Parameters:
onClear- aComponentHandlerthat defines the behavior to execute on a clear action.
-
value
Description copied from class:BaseTextInputGroupSame as value(value, false)- Overrides:
valuein classBaseTextInputGroup<T extends BaseSearchInput<T>>
-
value
- Overrides:
valuein classBaseTextInputGroup<T extends BaseSearchInput<T>>
-