Class SearchInputGroupTypeahead
java.lang.Object
org.patternfly.component.BaseComponent<HTMLElement, SearchInputGroupTypeahead>
org.patternfly.component.textinputgroup.BaseTextInputGroup<SearchInputGroupTypeahead>
org.patternfly.component.textinputgroup.BaseSearchInputGroup<SearchInputGroupTypeahead>
org.patternfly.component.textinputgroup.SearchInputGroupTypeahead
- All Implemented Interfaces:
Attachable, ElementAttributeMethods<HTMLElement, SearchInputGroupTypeahead>, ElementClassListMethods<HTMLElement, SearchInputGroupTypeahead>, ElementConsumerMethods<HTMLElement, SearchInputGroupTypeahead>, ElementContainerMethods<HTMLElement, SearchInputGroupTypeahead>, ElementEventMethods<HTMLElement, SearchInputGroupTypeahead>, ElementIdMethods<HTMLElement, SearchInputGroupTypeahead>, ElementQueryMethods<HTMLElement>, HTMLElementAttributeMethods<HTMLElement, SearchInputGroupTypeahead>, HTMLElementDataMethods<HTMLElement, SearchInputGroupTypeahead>, HTMLElementStyleMethods<HTMLElement, SearchInputGroupTypeahead>, HTMLElementVisibilityMethods<HTMLElement, SearchInputGroupTypeahead>, IsElement<HTMLElement>, TypedBuilder<HTMLElement, SearchInputGroupTypeahead>, Component, ComponentIcon<HTMLElement, SearchInputGroupTypeahead>, Expandable<HTMLElement, SearchInputGroupTypeahead>, Typeahead<SearchInputGroupTypeahead>, Validatable<HTMLElement, SearchInputGroupTypeahead>, HasValue<String>, OuiaSupport<HTMLElement, SearchInputGroupTypeahead>, Modifiers.Disabled<HTMLElement, SearchInputGroupTypeahead>, Modifiers.Plain<HTMLElement, SearchInputGroupTypeahead>
public class SearchInputGroupTypeahead
extends BaseSearchInputGroup<SearchInputGroupTypeahead>
implements Attachable, Expandable<HTMLElement, SearchInputGroupTypeahead>, Typeahead<SearchInputGroupTypeahead>
A search input with typeahead/autocomplete support. Combines a search input with an
attached
Menu to provide autocomplete behavior driven by a RefreshStrategy.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidattach(MutationRecord mutationRecord) voidcollapse(boolean fireEvent) voiddetach(MutationRecord mutationRecord) voidexpand(boolean fireEvent) filter(SearchFilter searchFilter) Sets the filter used to match existing menu items against the current input value.menu()Adds a handler called when the menu has finished loading its items.onNoResults(NoResults noResults) Configures the behavior for generating a "no results" menu item when no matching items are found.onToggle(ToggleHandler<SearchInputGroupTypeahead> handler) Adds a handler called when the typeahead menu is expanded or collapsed.refreshOn(RefreshStrategy strategy) Sets the refresh strategy for asynchronously loaded items.static SearchInputGroupTypeaheadstatic SearchInputGroupTypeaheadsearchInputTypeahead(String id, String placeholder) stayOpen(StayOpenPredicate<SearchInputGroupTypeahead> stayOpen) that()Methods inherited from class BaseSearchInputGroup
noDefaultOnClear, onClear, showUtilitiesIf, valueMethods inherited from class BaseTextInputGroup
add, addUtilities, applyTo, disabled, icon, input, onChange, onInput, onKeydown, onKeyup, placeholder, removeIcon, resetValidation, utilities, validated, valueMethods inherited from class BaseComponent
componentType, element, ouiaComponentType, 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 OuiaSupport
initOuia, initOuia, ouiaId, ouiaSafe, ouiaTransition
-
Method Details
-
searchInputGroupTypeahead
-
searchInputTypeahead
-
attach
- Specified by:
attachin interfaceAttachable
-
detach
- Specified by:
detachin interfaceAttachable
-
refreshOn
Description copied from interface:TypeaheadSets the refresh strategy for asynchronously loaded items.- Specified by:
refreshOnin interfaceTypeahead<SearchInputGroupTypeahead>
-
stayOpen
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement, SearchInputGroupTypeahead>
-
onLoaded
Description copied from interface:TypeaheadAdds a handler called when the menu has finished loading its items.- Specified by:
onLoadedin interfaceTypeahead<SearchInputGroupTypeahead>
-
onToggle
Description copied from interface:TypeaheadAdds a handler called when the typeahead menu is expanded or collapsed.- Specified by:
onTogglein interfaceTypeahead<SearchInputGroupTypeahead>
-
collapse
public void collapse(boolean fireEvent) - Specified by:
collapsein interfaceExpandable<HTMLElement, SearchInputGroupTypeahead>
-
expand
public void expand(boolean fireEvent) - Specified by:
expandin interfaceExpandable<HTMLElement, SearchInputGroupTypeahead>
-
value
- Overrides:
valuein classBaseSearchInputGroup<SearchInputGroupTypeahead>
-