Struct ymc::dialog::DialogProps[][src]

pub struct DialogProps {
    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,
}

Props for Dialog

Documentation:

Fields

open: boolhide_action: boolstacked: boolheading: 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: Children

Trait Implementations

impl Clone for DialogProps[src]

impl PartialEq<DialogProps> for DialogProps[src]

impl Properties for DialogProps[src]

type Builder = DialogPropsBuilder<DialogPropsBuilderStep_build>

Builder that will be used to construct properties

impl StructuralPartialEq for DialogProps[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.