Struct next_rs::AlertProps
source ยท 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 str
The message to be displayed in the alert.
show_alert: UseStateHandle<bool>
State handle to control the visibility of the alert.
timeout: u32
Time duration in milliseconds before the alert automatically closes.
title: &'static str
The title of the alert.
alert_class: &'static str
CSS class for styling the alert.
icon_class: &'static str
CSS 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 str
Position of the alert on the screen (e.g., โtop-leftโ, โmiddleโ, โbottom-rightโ).
container_class: &'static str
CSS class for styling the alert container.
title_class: &'static str
CSS class for styling the title in the alert.
message_class: &'static str
CSS class for styling the message in the alert.
icon_type: &'static str
Type of the icon to be displayed in the alert (e.g., โwarningโ, โerrorโ, โsuccessโ).
icon_color: &'static str
Color of the icon in the alert.
icon_width: &'static str
Width 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ยงfn eq(&self, other: &AlertProps) -> bool
fn eq(&self, other: &AlertProps) -> bool
self
and other
values to be equal, and is used
by ==
.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 !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
ยงimpl<T> Instrument for T
impl<T> Instrument for T
ยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
ยง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.