Struct relm4_components::alert::AlertSettings
source · pub struct AlertSettings {
pub text: String,
pub secondary_text: Option<String>,
pub is_modal: bool,
pub destructive_accept: bool,
pub confirm_label: String,
pub cancel_label: String,
pub option_label: Option<String>,
}
Expand description
Configuration for the alert dialog component
Fields§
§text: String
Large text
secondary_text: Option<String>
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: String
Text for confirm button
cancel_label: String
Text for cancel button
option_label: Option<String>
Text for third option button. If None
the third button won’t be created.