Struct relm4_components::alert::AlertSettings
source · pub struct AlertSettings {
pub text: &'static str,
pub secondary_text: Option<&'static str>,
pub is_modal: bool,
pub destructive_accept: bool,
pub confirm_label: &'static str,
pub cancel_label: &'static str,
pub option_label: Option<&'static str>,
}
Expand description
Configuration for the alert dialog component
Fields§
§text: &'static str
Large text
secondary_text: Option<&'static str>
Optional secondary, smaller text
is_modal: bool
Modal dialogs freeze other windows as long they are visible
destructive_accept: bool
Sets color of the accept button to red if the theme supports it
confirm_label: &'static str
Text for confirm button
cancel_label: &'static str
Text for cancel button
option_label: Option<&'static str>
Text for third option button. If None
the third button won’t be created.