Class PopperMultiTypeahead
java.lang.Object
org.patternfly.component.ComponentDelegate<HTMLElement, PopperMultiTypeahead>
org.patternfly.component.menu.PopperMultiTypeahead
- All Implemented Interfaces:
Attachable, ElementAttributeMethods<HTMLElement, PopperMultiTypeahead>, ElementClassListMethods<HTMLElement, PopperMultiTypeahead>, ElementConsumerMethods<HTMLElement, PopperMultiTypeahead>, ElementContainerMethods<HTMLElement, PopperMultiTypeahead>, ElementEventMethods<HTMLElement, PopperMultiTypeahead>, ElementIdMethods<HTMLElement, PopperMultiTypeahead>, ElementQueryMethods<HTMLElement>, HTMLElementAttributeMethods<HTMLElement, PopperMultiTypeahead>, HTMLElementDataMethods<HTMLElement, PopperMultiTypeahead>, HTMLElementStyleMethods<HTMLElement, PopperMultiTypeahead>, HTMLElementVisibilityMethods<HTMLElement, PopperMultiTypeahead>, IsElement<HTMLElement>, TypedBuilder<HTMLElement, PopperMultiTypeahead>, Component, Expandable<HTMLElement, PopperMultiTypeahead>, PopperTypeahead<PopperMultiTypeahead>, Modifiers.Disabled<HTMLElement, PopperMultiTypeahead>
@Deprecated(since="0.7.0",
forRemoval=true)
public class PopperMultiTypeahead
extends ComponentDelegate<HTMLElement, PopperMultiTypeahead>
implements PopperTypeahead<PopperMultiTypeahead>
Deprecated, for removal: This API element is subject to removal in a future version.
A typeahead is a select variant that replaces the typical button toggle for opening the select menu with a text input and
button toggle combo. As a user enters characters into the text input, the menu options will be filtered to match.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Allows the creation of new menu items based on user input.applyToMenuToggle(Consumer<MenuToggle> consumer) Deprecated, for removal: This API element is subject to removal in a future version.Provides access to the underlying menu toggle using a fluent API styleDeprecated, for removal: This API element is subject to removal in a future version.voidattach(MutationRecord mutationRecord) Deprecated, for removal: This API element is subject to removal in a future version.voidclear()Deprecated, for removal: This API element is subject to removal in a future version.voidclear(boolean fireEvent) Deprecated, for removal: This API element is subject to removal in a future version.voidcollapse(boolean fireEvent) Deprecated, for removal: This API element is subject to removal in a future version.voiddetach(MutationRecord mutationRecord) Deprecated, for removal: This API element is subject to removal in a future version.disabled(boolean disabled) Deprecated, for removal: This API element is subject to removal in a future version.voidexpand(boolean fireEvent) Deprecated, for removal: This API element is subject to removal in a future version.flip(boolean flip) Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.menu()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.static PopperMultiTypeaheadmultiTypeahead(String id, String placeholder) Deprecated, for removal: This API element is subject to removal in a future version.Creates a newPopperMultiTypeaheadcomponent with aMenuToggleof typeMenuToggleType.typeaheadand aFilterInput.static PopperMultiTypeaheadmultiTypeahead(BaseFilterInput<?> filterInput) Deprecated, for removal: This API element is subject to removal in a future version.Creates a newPopperMultiTypeaheadcomponent with aMenuToggleof typeMenuToggleType.typeaheadand the specifiedBaseFilterInput.onLoaded(ComponentHandler<PopperMultiTypeahead> loadedHandler) Deprecated, for removal: This API element is subject to removal in a future version.onNoResults(NoResults noResults) Deprecated, for removal: This API element is subject to removal in a future version.Configures the behavior for generating a "no results" menu item when no matching items are found in the menu list for the given input text.onSearch(SearchFilter searchFilter) Deprecated, for removal: This API element is subject to removal in a future version.Configures the search behavior for this typeahead.onToggle(ToggleHandler<PopperMultiTypeahead> toggleHandler) Deprecated, for removal: This API element is subject to removal in a future version.placement(PopperPlacement placement) Deprecated, for removal: This API element is subject to removal in a future version.voidselectIdentifiers(List<String> identifiers) Deprecated, for removal: This API element is subject to removal in a future version.voidselectIdentifiers(List<String> identifiers, boolean fireEvent) Deprecated, for removal: This API element is subject to removal in a future version.voidselectItems(List<MenuItem> items) Deprecated, for removal: This API element is subject to removal in a future version.voidselectItems(List<MenuItem> items, boolean fireEvent) Deprecated, for removal: This API element is subject to removal in a future version.stayOpen()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Specifies a condition that determines whether the menu should remain open when an event occurs.that()Deprecated, for removal: This API element is subject to removal in a future version.zIndex(int zIndex) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class ComponentDelegate
componentType, element, ouiaIdMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
disabledMethods inherited from interface PopperTypeahead
allowNewItems
-
Method Details
-
multiTypeahead
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newPopperMultiTypeaheadcomponent with aMenuToggleof typeMenuToggleType.typeaheadand aFilterInput. -
multiTypeahead
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newPopperMultiTypeaheadcomponent with aMenuToggleof typeMenuToggleType.typeaheadand the specifiedBaseFilterInput.- Parameters:
filterInput- theBaseFilterInputinstance used to configure the typeahead component with filtering and search capabilities- Returns:
- a new
PopperMultiTypeaheadinstance configured with the given filter input
-
allowNewItems
public PopperMultiTypeahead allowNewItems(Function<String, String> prompt, Function<String, Promise<MenuItem>> createItem) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PopperTypeaheadAllows the creation of new menu items based on user input. This method enables a typeahead component to provide functionality for dynamically adding custom items when the user-provided input does not match any existing items.- Specified by:
allowNewItemsin interfacePopperTypeahead<PopperMultiTypeahead>- Parameters:
prompt- aFunctionthat takes aStringinput representing the user's data and returns aStringresponse, typically used to prompt the user or display a message.createItem- aFunctionthat takes aStringinput representing the user's data and returns aPromiseof aMenuItem, representing the newly created item.- Returns:
- an instance of the enclosing type, enabling method chaining for further configuration.
-
that
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
thatin interfaceTypedBuilder<HTMLElement, PopperMultiTypeahead>
-
clear
public void clear()Deprecated, for removal: This API element is subject to removal in a future version. -
clear
public void clear(boolean fireEvent) Deprecated, for removal: This API element is subject to removal in a future version. -
selectIdentifiers
-
selectIdentifiers
-
selectItems
-
selectItems
-
attach
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
attachin interfaceAttachable
-
detach
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
detachin interfaceAttachable
-
applyToMenuToggle
Deprecated, for removal: This API element is subject to removal in a future version.Provides access to the underlying menu toggle using a fluent API style -
disabled
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement, B extends TypedBuilder<HTMLElement, B>>
-
isDisabled
public boolean isDisabled()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isDisabledin interfaceModifiers.Disabled<HTMLElement, B extends TypedBuilder<HTMLElement, B>>
-
flip
Deprecated, for removal: This API element is subject to removal in a future version. -
placement
Deprecated, for removal: This API element is subject to removal in a future version. -
stayOpen
Deprecated, for removal: This API element is subject to removal in a future version. -
stayOpen
Deprecated, for removal: This API element is subject to removal in a future version.Specifies a condition that determines whether the menu should remain open when an event occurs. -
zIndex
Deprecated, for removal: This API element is subject to removal in a future version. -
ariaLabel
Deprecated, for removal: This API element is subject to removal in a future version. -
onLoaded
Deprecated, for removal: This API element is subject to removal in a future version. -
onToggle
Deprecated, for removal: This API element is subject to removal in a future version. -
collapse
public void collapse(boolean fireEvent) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
collapsein interfaceExpandable<HTMLElement, B extends TypedBuilder<HTMLElement, B>>
-
expand
public void expand(boolean fireEvent) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
expandin interfaceExpandable<HTMLElement, B extends TypedBuilder<HTMLElement, B>>
-
MultiTypeaheadinstead.