Struct material_yew::snackbar::SnackbarProps
source · pub struct SnackbarProps {
pub open: bool,
pub timeout_ms: i32,
pub close_on_escape: bool,
pub label_text: Option<AttrValue>,
pub stacked: bool,
pub leading: bool,
pub onopening: Callback<()>,
pub onopened: Callback<()>,
pub onclosing: Callback<Option<String>>,
pub onclosed: Callback<Option<String>>,
pub snackbar_link: WeakComponentLink<MatSnackbar>,
pub children: Children,
}
Expand description
Fields§
§open: bool
§timeout_ms: i32
§close_on_escape: bool
§label_text: Option<AttrValue>
§stacked: bool
§leading: bool
§onopening: Callback<()>
Binds to MDCSnackbar:opening
event
See events docs to learn more.
onopened: Callback<()>
Binds to MDCSnackbar:opened
event
See events docs to learn more.
onclosing: Callback<Option<String>>
Binds to MDCSnackbar:
event
The argument passed to callback corresponds to reason
parameter of the
event
See events docs to learn more.
onclosed: Callback<Option<String>>
Binds to closing
event
The argument passed to callback corresponds to reason
parameter of the
event
See events docs to learn more.
snackbar_link: WeakComponentLink<MatSnackbar>
[WeakComponentLink
] for MatList
which provides the following methods
show(&self)
close(&self, reason: &str)
See [WeakComponentLink
] documentation for more information
children: Children
Trait Implementations§
source§impl Clone for SnackbarProps
impl Clone for SnackbarProps
source§fn clone(&self) -> SnackbarProps
fn clone(&self) -> SnackbarProps
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq<SnackbarProps> for SnackbarProps
impl PartialEq<SnackbarProps> for SnackbarProps
source§fn eq(&self, other: &SnackbarProps) -> bool
fn eq(&self, other: &SnackbarProps) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Properties for SnackbarProps
impl Properties for SnackbarProps
impl StructuralPartialEq for SnackbarProps
Auto Trait Implementations§
impl !RefUnwindSafe for SnackbarProps
impl !Send for SnackbarProps
impl !Sync for SnackbarProps
impl Unpin for SnackbarProps
impl !UnwindSafe for SnackbarProps
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.