813 B
813 B
Slots
placeholder
: Only shown when nothing is selectedloading
: Hidden by default, shown instead of items whilepopulate()
runs
Parts
display
: The outer display box that is always showndisplay-text
: The text representing the currently selected valuedrop-down
: The dialog element that pops up when the list is openedsearch
: The search input boxlist
: The wrapper containing the itemsitem
: The individual selectable list items
Hooks
populate()
: If present, gets called after opening to populate the options listsearch(string)
: Called on search input to update the list of optionsmatch(string, element)
: Used bysearch
to compare each option to the search string
Attributes
closeSignal
: An AbortSignal that fires when the drop-down closes