pub struct AlertProps {Show 22 fields
    pub message: &'static str,
    pub show_alert: UseStateHandle<bool>,
    pub timeout: u32,
    pub title: &'static str,
    pub alert_class: &'static str,
    pub icon_class: &'static str,
    pub confirm_button_text: &'static str,
    pub cancel_button_text: &'static str,
    pub confirm_button_class: &'static str,
    pub cancel_button_class: &'static str,
    pub show_confirm_button: bool,
    pub show_cancel_button: bool,
    pub show_close_button: bool,
    pub on_confirm: Callback<()>,
    pub on_cancel: Callback<()>,
    pub position: &'static str,
    pub container_class: &'static str,
    pub title_class: &'static str,
    pub message_class: &'static str,
    pub icon_type: &'static str,
    pub icon_color: &'static str,
    pub icon_width: &'static str,
}Expand description
Props for the Alert component.
Fields§
§message: &'static strThe message to be displayed in the alert.
show_alert: UseStateHandle<bool>State handle to control the visibility of the alert.
timeout: u32Time duration in milliseconds before the alert automatically closes.
title: &'static strThe title of the alert.
alert_class: &'static strCSS class for styling the alert.
icon_class: &'static strCSS class for styling the icon in the alert.
Text for the confirm button in the alert.
Text for the cancel button in the alert.
CSS class for styling the confirm button.
CSS class for styling the cancel button.
Flag to determine if the confirm button should be displayed.
Flag to determine if the cancel button should be displayed.
Flag to determine if the close button should be displayed.
on_confirm: Callback<()>Callback function triggered on confirm button click.
on_cancel: Callback<()>Callback function triggered on cancel button click.
position: &'static strPosition of the alert on the screen (e.g., “top-left”, “middle”, “bottom-right”).
container_class: &'static strCSS class for styling the alert container.
title_class: &'static strCSS class for styling the title in the alert.
message_class: &'static strCSS class for styling the message in the alert.
icon_type: &'static strType of the icon to be displayed in the alert (e.g., “warning”, “error”, “success”).
icon_color: &'static strColor of the icon in the alert.
icon_width: &'static strWidth of the icon in the alert.
Trait Implementations§
Source§impl Clone for AlertProps
 
impl Clone for AlertProps
Source§fn clone(&self) -> AlertProps
 
fn clone(&self) -> AlertProps
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AlertProps
 
impl Debug for AlertProps
Source§impl PartialEq for AlertProps
 
impl PartialEq for AlertProps
Source§impl Properties for AlertProps
 
impl Properties for AlertProps
Source§fn builder() -> <AlertProps as Properties>::Builder
 
fn builder() -> <AlertProps as Properties>::Builder
impl StructuralPartialEq for AlertProps
Auto Trait Implementations§
impl Freeze for AlertProps
impl !RefUnwindSafe for AlertProps
impl !Send for AlertProps
impl !Sync for AlertProps
impl Unpin for AlertProps
impl !UnwindSafe for AlertProps
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
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>
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
self to a value of a Properties struct.