pub fn Menu(_: MenuProps) -> ElementExpand 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.
weight:Option<f32>width:Option<f32>height:Option<f32>padding:Option<f32>padding_role:Option<SpaceRole>background:Option<Paint>shape_role:Option<ShapeRole>corner_radius:Option<f32>border_width:Option<f32>border_color:Option<Paint>elevation:Option<f32>fill_max_width:boolfill_max_height:boolexpanded:boolon_dismiss:EventHandler<()>anchor:Elementchildren:Element