Class MultiSelect

A multi select widget with standard styling.

Index

Methods

build

  • build(): HTMLElement

getElement

  • getElement(): HTMLElement

getUnselectedValues

  • getUnselectedValues(): string[]

getValue

  • getValue(): string[]

reset

  • reset(): void

setValue

  • setValue(values: string[]): void

Constructors

constructor

  • new MultiSelect(onChange?: function, options: string[], label: string): MultiSelect
  • Creates a new MultiSelect.

    Parameters

    • Default value onChange: function = (multiSelect: MultiSelect) => {}

      The function to call when the widget selected values change. This function takes the current MultiSelect instance as an argument.

    • options: string[]

      The values which can be selected with the multi select.

    • label: string

      The label to display for the multi select.

    Returns MultiSelect

Hierarchy

  • MultiSelect

Implements