pub struct DialogProps {Show 15 fields
pub open: bool,
pub hide_action: bool,
pub stacked: bool,
pub heading: Option<String>,
pub scrim_click_action: Option<String>,
pub escape_key_action: Option<String>,
pub default_action: Option<String>,
pub action_attribute: Option<String>,
pub initial_focus_attribute: Option<String>,
pub onopening: Callback<()>,
pub onopened: Callback<()>,
pub onclosing: Callback<String>,
pub onclosed: Callback<String>,
pub dialog_link: WeakComponentLink<Dialog>,
pub children: Children,
}Expand description
Fields§
§open: bool§hide_action: bool§stacked: bool§heading: Option<String>§scrim_click_action: Option<String>§escape_key_action: Option<String>§default_action: Option<String>§action_attribute: Option<String>§initial_focus_attribute: Option<String>§onopening: Callback<()>Binds to opening event on dialog
See events docs to learn more.
onopened: Callback<()>Binds to opened event on dialog
See events docs to learn more.
onclosing: Callback<String>Binds to closing event on dialog
See events docs to learn more.
onclosed: Callback<String>Binds to closed event on dialog
See events docs to learn more.
dialog_link: WeakComponentLink<Dialog>[WeakComponentLink] for Dialog which provides the following
methods:
focus(&self)blur(&self)show(&self)close(&self)
See [WeakComponentLink] documentation for more information
children: ChildrenTrait Implementations§
Source§impl Clone for DialogProps
impl Clone for DialogProps
Source§fn clone(&self) -> DialogProps
fn clone(&self) -> DialogProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for DialogProps
impl PartialEq for DialogProps
Source§fn eq(&self, other: &DialogProps) -> bool
fn eq(&self, other: &DialogProps) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Properties for DialogProps
impl Properties for DialogProps
impl StructuralPartialEq for DialogProps
Auto Trait Implementations§
impl Freeze for DialogProps
impl !RefUnwindSafe for DialogProps
impl !Send for DialogProps
impl !Sync for DialogProps
impl Unpin for DialogProps
impl UnsafeUnpin for DialogProps
impl !UnwindSafe for DialogProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more