Skip to content

ElectronDialog.showMessageBox method

ElectronDialog › showMessageBox

Unofficial

Shows a message box dialog.

Signature:

showMessageBox(browserWindow: ElectronBrowserWindow, options: ElectronMessageBoxOptions): Promise<ElectronMessageBoxReturnValue>

Parameters:

Parameter Type Description
browserWindow ElectronBrowserWindow The parent window.
options ElectronMessageBoxOptions The message box options.

Returns: Promise<ElectronMessageBoxReturnValue>The user's response.


Unofficial

Shows a message box dialog.

Signature:

showMessageBox(options: ElectronMessageBoxOptions): Promise<ElectronMessageBoxReturnValue>

Parameters:

Parameter Type Description
options ElectronMessageBoxOptions The message box options.

Returns: Promise<ElectronMessageBoxReturnValue>The user's response.