Skip to main content

Menu

Function Menu 

Source
pub fn Menu(_: MenuProps) -> Element
Expand description

A popup anchored to anchor, which is the widget the menu hangs off. The anchor is the first child on the wire and the entries follow it, so the Renderer can place the popup without the Host knowing any screen coordinates.

Each entry supplies its own on_click, which is what tells the Host which one was chosen. The Renderer closes the popup itself.

ยงProps

For details, see the props struct definition.