Skip to main content

AlertDialog

Function AlertDialog 

Source
pub fn AlertDialog(
    state: Rc<DialogState>,
    overlay: OverlayHandle,
    title: View,
    text: View,
    confirm_button: View,
    dismiss_button: Option<View>,
    config: AlertDialogConfig,
) -> View
Expand description

An improved AlertDialog using the overlay-based Dialog.

Shows a centered modal surface with title, text, confirm button, and optional dismiss button. Managed via a shared DialogState.