Also has everything from ElementHandle.
A list to pick from. In single-select mode the value is one string; in multi-select mode it’s a list of strings.
Creation
The list of choices. Order is preserved.
SetOptions
Change the list of choices.
SetMode
Switch between single-select and multi-select.
SetMin / SetMax
In multi-select, the smallest / largest number of choices the user must pick. nil removes the cap.
SetPlaceholder
Text shown when nothing is selected.
SetSelected
Set the selection: a string in single mode, a list in multi.
Toggle
In multi mode: add or remove that option. In single mode: pick it and close.
IsSelected
Open / Close
Open or close the popup from code.
WasJustClosed
True for about 0.1s after the dropdown closed. Use this to swallow the click that just dismissed it.
Example