跳转到内容

createDropdown

此内容尚不支持你的语言。

createDropdown<T>(opts): DropdownHandle<T>

Defined in: ui/widgets/dropdown.ts:71

Dropdown: a button showing the current selection that opens a popup with clickable option rows. State + behavior live in the UIDropdown component and its system: click toggles the popup, a click anywhere else closes it, arrow keys step the selection while focused, and the label follows selectedIndex for any writer. The factory adds the generic-type mapping (options: T[] + optionToLabel) on top.

T

DropdownOptions<T>

DropdownHandle<T>