pub struct MessageBoxProps {Show 13 fields
pub title: Option<String>,
pub message: String,
pub box_type: MessageBoxType,
pub show_close: bool,
pub show_confirm_button: bool,
pub show_cancel_button: bool,
pub confirm_button_text: String,
pub cancel_button_text: String,
pub visible: bool,
pub on_confirm: Option<EventHandler<()>>,
pub on_cancel: Option<EventHandler<()>>,
pub class: Option<String>,
pub style: Option<String>,
}Expand description
MessageBox props
Fields§
§title: Option<String>Title text
message: StringMessage content
box_type: MessageBoxTypeMessage box type
show_close: boolWhether to show close button
Whether to show confirm button
Whether to show cancel button
Confirm button text
Cancel button text
visible: boolWhether the message box is visible
on_confirm: Option<EventHandler<()>>Confirm event handler
on_cancel: Option<EventHandler<()>>Cancel event handler
class: Option<String>§style: Option<String>Implementations§
Source§impl MessageBoxProps
impl MessageBoxProps
Sourcepub fn builder() -> MessageBoxPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> MessageBoxPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building MessageBoxProps.
On the builder, call .title(...)(optional), .message(...), .box_type(...)(optional), .show_close(...)(optional), .show_confirm_button(...)(optional), .show_cancel_button(...)(optional), .confirm_button_text(...)(optional), .cancel_button_text(...)(optional), .visible(...)(optional), .on_confirm(...)(optional), .on_cancel(...)(optional), .class(...)(optional), .style(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of MessageBoxProps.
Trait Implementations§
Source§impl Clone for MessageBoxProps
impl Clone for MessageBoxProps
Source§fn clone(&self) -> MessageBoxProps
fn clone(&self) -> MessageBoxProps
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PartialEq for MessageBoxProps
impl PartialEq for MessageBoxProps
Source§fn eq(&self, other: &MessageBoxProps) -> bool
fn eq(&self, other: &MessageBoxProps) -> bool
self and other values to be equal, and is used by ==.