Documentation

showAlertDialogAsync()

Displays an alert dialog with the specified content and a single dismiss button.

showAlertDialogAsync(
config:
| MessageDialogOptions
| DeferredString
| string
| StringConvertible[],
buttonText?: StringConvertible,
): Promise<void>;

Notes

Parameters

Return value

A promise that resolves when the dialog is closed.

Errors

This method throws an error if the modal dialog controller can’t be initialized (i.e. there’s no modal factory or alert dialog builder).

Related