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>

public class MultiSelect extends MenuToggleMenu<MultiSelect>
A select component to select multiple items from a list.
See Also:
  • Method Details

    • multiSelect

      public static MultiSelect multiSelect(String text)
      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
    • multiSelect

      public static MultiSelect multiSelect(MenuToggle menuToggle)
      Creates a new instance of MultiSelect initialized with the specified MenuToggle.
      Parameters:
      menuToggle - the MenuToggle to initialize the MultiSelect with
      Returns:
      a new instance of MultiSelect initialized with the provided MenuToggle
    • that

      public MultiSelect that()
    • add

      public MultiSelect add(Menu menu)
      Overrides:
      add in class MenuToggleMenu<B extends TypedBuilder<HTMLElement, B>>
    • clear

      public void clear()
    • clear

      public void clear(boolean fireEvent)
    • selectIdentifiers

      public void selectIdentifiers(List<String> identifiers)
    • selectIdentifiers

      public void selectIdentifiers(List<String> identifiers, boolean fireEvent)
    • selectItems

      public void selectItems(List<MenuItem> items)
    • selectItems

      public void selectItems(List<MenuItem> items, boolean fireEvent)