Skip to main content

Module dropdown

Module dropdown 

Source
Expand description

Dropdowns: the one control for an enumeration. The closed control looks like an input with a chevron that turns when open; the popup is a raised card of 28 px rows with an accent check on the current value, caption headers for groups, and a search field once the list passes twelve items.

Structs§

Dropdown
DropdownOutput

Constants§

SEARCH_ABOVE
Lists longer than this get a search field at the top.

Functions§

dropdown
dropdown("density", &["Compact", "Comfortable"]).show(ui, &mut index).