pub type AlertDialogProps = DialogSurfaceProps;Expand description
Props for AlertDialog.
Aliased Type§
pub struct AlertDialogProps {
pub dialog: Option<DialogController>,
pub open: Option<bool>,
pub default_open: bool,
pub on_open_change: Option<Callback<bool>>,
pub dismiss_on_escape: bool,
pub dismiss_on_outside_press: Option<bool>,
pub glass: Glass,
pub class: Option<String>,
pub attributes: Vec<Attribute>,
pub children: Result<VNode, RenderError>,
}Fields§
§dialog: Option<DialogController>A controller from use_dialog. It owns the open state and lets a DialogTrigger get
focus back when the dialog closes.
open: Option<bool>Controlled open state.
default_open: boolInitial open state when uncontrolled.
on_open_change: Option<Callback<bool>>Called with the requested open state.
dismiss_on_escape: boolCloses on Escape. Defaults to true.
dismiss_on_outside_press: Option<bool>Closes on a click outside. Defaults to true, or false for AlertDialog.
glass: GlassGlass intensity.
class: Option<String>Extra classes appended after the Lumen classes.
attributes: Vec<Attribute>Any other <dialog> or global attribute. Name the dialog with aria_labelledby.
children: Result<VNode, RenderError>Dialog content.