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: StringLarge text
secondary_text: Option<String>Optional secondary, smaller text
is_modal: boolModal dialogs freeze other windows as long they are visible
destructive_accept: boolSets color of the accept button to red if the theme supports it
confirm_label: StringText for confirm button
cancel_label: StringText for cancel button
option_label: Option<String>Text for third option button. If None the third button won’t be created.