Struct material_dioxus::dialog::DialogProps
source · pub struct DialogProps<'a> {Show 16 fields
pub open: bool,
pub hide_actions: 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: Option<StaticCallback<()>>,
pub _onopened: Option<StaticCallback<()>>,
pub _onclosing: Option<StaticCallback<String>>,
pub _onclosed: Option<StaticCallback<String>>,
pub children: Element<'a>,
pub style: String,
pub class: String,
}Expand description
Fields§
§open: bool§hide_actions: 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: Option<StaticCallback<()>>Binds to opening event on mwc-dialog
See events docs to learn more.
_onopened: Option<StaticCallback<()>>Binds to opened event on mwc-dialog
See events docs to learn more.
_onclosing: Option<StaticCallback<String>>Binds to closing event on mwc-dialog
See events docs to learn more.
_onclosed: Option<StaticCallback<String>>Binds to closed event on mwc-dialog
See events docs to learn more.
children: Element<'a>§style: String§class: StringImplementations§
source§impl<'a> DialogProps<'a>
impl<'a> DialogProps<'a>
sourcepub fn builder(
) -> DialogPropsBuilder<'a, ((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> DialogPropsBuilder<'a, ((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building DialogProps.
On the builder, call .open(...)(optional), .hide_actions(...)(optional), .stacked(...)(optional), .heading(...)(optional), .scrim_click_action(...)(optional), .escape_key_action(...)(optional), .default_action(...)(optional), .action_attribute(...)(optional), .initial_focus_attribute(...)(optional), ._onopening(...)(optional), ._onopened(...)(optional), ._onclosing(...)(optional), ._onclosed(...)(optional), .children(...)(optional), .style(...)(optional), .class(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of DialogProps.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DialogProps<'a>
impl<'a> !Send for DialogProps<'a>
impl<'a> !Sync for DialogProps<'a>
impl<'a> Unpin for DialogProps<'a>
impl<'a> !UnwindSafe for DialogProps<'a>
Blanket Implementations§
source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, D: AdaptFrom<S, Swp, Dwp, T>,
source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere M: TransformMatrix<T>,
source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
source§impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
impl<T, C> ArraysFrom<C> for Twhere C: IntoArrays<T>,
source§fn arrays_from(colors: C) -> T
fn arrays_from(colors: C) -> T
source§impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
impl<T, C> ArraysInto<C> for Twhere C: FromArrays<T>,
source§fn arrays_into(self) -> C
fn arrays_into(self) -> C
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
source§impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
impl<T, C> ComponentsFrom<C> for Twhere C: IntoComponents<T>,
source§fn components_from(colors: C) -> T
fn components_from(colors: C) -> T
source§impl<T> FromAngle<T> for T
impl<T> FromAngle<T> for T
source§fn from_angle(angle: T) -> T
fn from_angle(angle: T) -> T
angle.source§impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
impl<T, U> FromStimulus<U> for Twhere U: IntoStimulus<T>,
source§fn from_stimulus(other: U) -> T
fn from_stimulus(other: U) -> T
other into Self, while performing the appropriate scaling,
rounding and clamping.source§impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
impl<T, U> IntoAngle<U> for Twhere U: FromAngle<T>,
source§fn into_angle(self) -> U
fn into_angle(self) -> U
T.source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere U: FromColor<T>,
source§fn into_color(self) -> U
fn into_color(self) -> U
source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere U: FromColorUnclamped<T>,
source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
source§impl<T> IntoStimulus<T> for T
impl<T> IntoStimulus<T> for T
source§fn into_stimulus(self) -> T
fn into_stimulus(self) -> T
self into T, while performing the appropriate scaling,
rounding and clamping.source§impl<'a, T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
impl<'a, T, C> TryComponentsInto<C> for Twhere C: TryFromComponents<T>,
§type Error = <C as TryFromComponents<T>>::Error
type Error = <C as TryFromComponents<T>>::Error
try_into_colors fails to cast.source§fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere U: TryFromColor<T>,
source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
OutOfBounds error is returned which contains
the unclamped color. Read more