Skip to content

ElectronDialog.showMessageBox method

ElectronDialog › showMessageBox

Unofficial

Shows a message box dialog.

Signature:

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

Parameters:

ParameterTypeDescription
browserWindowElectronBrowserWindowThe parent window.
optionsElectronMessageBoxOptionsThe message box options.

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


Unofficial

Shows a message box dialog.

Signature:

showMessageBox(options: ElectronMessageBoxOptions): Promise<ElectronMessageBoxReturnValue>

Parameters:

ParameterTypeDescription
optionsElectronMessageBoxOptionsThe message box options.

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