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:

ParameterTypeDescription
browserWindowElectronBrowserWindowThe parent window.
optionsElectronMessageBoxSyncOptionsThe 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:

ParameterTypeDescription
optionsElectronMessageBoxSyncOptionsThe message box options.

Returns: numberThe index of the clicked button.