ElementCreateSearchableDropdown
Callable
Parameters
id: string
The id of the root container; sub-element ids are derived from it.
optionsList: readonly OptionItem[]
The available options.
onChange: (value) => void
Called when the selection changes.
optionaloptions: CreateOptions
Returns SearchableDropdownElement
Construct a custom searchable dropdown menu.
The element comprises a button trigger displaying the current selection, and a popup containing a search input and a scrollable list of options. Options can optionally be grouped via the
groupfield, which inserts a interactive header before each group of options sharing the same value.