pub fn Dialog(_: DialogProps) -> ElementExpand description
A modal. open seeds the Renderer’s own open state and carries changes that came from
somewhere other than the Renderer; the Renderer runs the enter and exit itself so the
animation never round trips through the Host. on_dismiss fires when the user asks to
close it, and the Host decides whether to honour that by setting open to false.
§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:boolopen:boolon_dismiss:EventHandler<()>children:Element