Skip to main content

Module menu

Module menu 

Source
Expand description

Item — a row in a dropped menu — and card, the panel that paints a list of them.

Every menu in the system is those two over the caller’s own open state: the bar’s dropped panel (crate::menubar), the ··· on a row, the picker under a chip. The state stays with the caller because only it knows what opening means — a crate::popover::Popup for one, a field for another.

Enums§

Item
A row in a menu.

Functions§

card
The panel a menu drops: every Item as a row, in a popover::popover_card. id prefixes the rows’ element ids, so two menus open at once keep their hover state apart.
next_selectable
The next row the keyboard can land on, delta deciding the direction: separators and disabled rows are stepped straight over, and both ends wrap. from of None enters the menu at the edge the direction comes from.