Class MultiSelect
- All Implemented Interfaces:
Attachable, ElementAttributeMethods<HTMLElement, MultiSelect>, ElementClassListMethods<HTMLElement, MultiSelect>, ElementConsumerMethods<HTMLElement, MultiSelect>, ElementContainerMethods<HTMLElement, MultiSelect>, ElementEventMethods<HTMLElement, MultiSelect>, ElementIdMethods<HTMLElement, MultiSelect>, ElementQueryMethods<HTMLElement>, HTMLElementAttributeMethods<HTMLElement, MultiSelect>, HTMLElementDataMethods<HTMLElement, MultiSelect>, HTMLElementStyleMethods<HTMLElement, MultiSelect>, HTMLElementVisibilityMethods<HTMLElement, MultiSelect>, IsElement<HTMLElement>, TypedBuilder<HTMLElement, MultiSelect>, Component, Expandable<HTMLElement, MultiSelect>, Modifiers.Disabled<HTMLElement, MultiSelect>
A select component to select multiple items from a list.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidclear(boolean fireEvent) static MultiSelectmultiSelect(String text) Creates a new instance of MultiSelect with a toggle menu initialized using the provided text.static MultiSelectmultiSelect(MenuToggle menuToggle) Creates a new instance ofMultiSelectinitialized with the specifiedMenuToggle.voidselectIdentifiers(List<String> identifiers) voidselectIdentifiers(List<String> identifiers, boolean fireEvent) voidselectItems(List<MenuItem> items) voidselectItems(List<MenuItem> items, boolean fireEvent) that()Methods inherited from class MenuToggleMenu
addMenu, applyTo, ariaLabel, attach, collapse, detach, disabled, expand, flip, isDisabled, menu, menuToggle, onLoaded, onToggle, placement, stayOpen, stayOpen, zIndexMethods inherited from class ComponentDelegate
componentType, elementMethods 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
disabled
-
Method Details
-
multiSelect
Creates a new instance of MultiSelect with a toggle menu initialized using the provided text. The toggle menu includes a badge initialized with a count of zero in the read state.- Parameters:
text- the text to be displayed on the toggle menu- Returns:
- a new instance of MultiSelect initialized with the specified text
-
that
-
clear
public void clear() -
clear
public void clear(boolean fireEvent) -
selectIdentifiers
-
selectIdentifiers
-
selectItems
-
selectItems
-