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 org.patternfly.component.textinputgroup.BaseTextInputGroup
add, addUtilities, applyTo, disabled, icon, input, onChange, onKeyup, placeholder, removeIcon, resetValidation, utilities, validated, valueMethods inherited from class org.patternfly.component.BaseComponent
componentType, element, registerComponentMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.patternfly.component.ComponentIcon
iconMethods inherited from interface org.jboss.elemento.ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface org.jboss.elemento.ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface org.jboss.elemento.ElementConsumerMethods
apply, runMethods inherited from interface org.jboss.elemento.ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface org.jboss.elemento.ElementEventMethods
on, on, onMethods inherited from interface org.jboss.elemento.ElementIdMethods
id, uniqueIdMethods inherited from interface org.jboss.elemento.ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface org.jboss.elemento.HTMLElementAttributeMethods
titleMethods inherited from interface org.jboss.elemento.HTMLElementDataMethods
dataMethods inherited from interface org.jboss.elemento.HTMLElementStyleMethods
style, style, style, style, style, styleMethods inherited from interface org.jboss.elemento.HTMLElementVisibilityMethods
hiddenMethods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled, isDisabledMethods inherited from interface org.patternfly.style.Modifiers.Plain
plain, plainMethods inherited from interface org.jboss.elemento.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>>
-