pub struct ToastProps {
pub header: Children,
pub children: Children,
pub show: bool,
pub dismissible: bool,
pub variant: Option<Variant>,
pub delay: u32,
pub on_show: Option<Callback<()>>,
pub on_hide: Option<Callback<()>>,
pub class: Option<AttrValue>,
pub node_ref: NodeRef,
}Expand description
Props for the Toast component
Fields§
§header: ChildrenToast header content
children: ChildrenToast body content
show: boolWhether the toast is currently shown
dismissible: boolWhether the toast can be dismissed
variant: Option<Variant>Toast variant (color)
delay: u32Autohide delay in milliseconds (0 = no autohide)
on_show: Option<Callback<()>>Callback when toast is shown
on_hide: Option<Callback<()>>Callback when toast is hidden
class: Option<AttrValue>Additional CSS classes
node_ref: NodeRefAdditional HTML attributes
Trait Implementations§
Source§impl PartialEq for ToastProps
impl PartialEq for ToastProps
Source§impl Properties for ToastProps
impl Properties for ToastProps
impl StructuralPartialEq for ToastProps
Auto Trait Implementations§
impl Freeze for ToastProps
impl !RefUnwindSafe for ToastProps
impl !Send for ToastProps
impl !Sync for ToastProps
impl Unpin for ToastProps
impl !UnwindSafe for ToastProps
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
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>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.