Skip to content

ElectronDialog.showMessageBoxSync method

ElectronDialog › showMessageBoxSync

Unofficial

Shows a message box dialog, blocking the process until it is closed.

Signature:

showMessageBoxSync(browserWindow: ElectronBrowserWindow, options: ElectronMessageBoxSyncOptions): number

Parameters:

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

Returns: numberThe index of the clicked button.


Unofficial

Shows a message box dialog, blocking the process until it is closed.

Signature:

showMessageBoxSync(options: ElectronMessageBoxSyncOptions): number

Parameters:

Parameter Type Description
options ElectronMessageBoxSyncOptions The message box options.

Returns: numberThe index of the clicked button.