ElectronDialog.showMessageBoxSync method
ElectronDialog › showMessageBoxSync
Unofficial
Shows a message box dialog, blocking the process until it is closed.Signature:
showMessageBoxSync(browserWindow: ElectronBrowserWindow, options: ElectronMessageBoxSyncOptions): numberParameters:
| Parameter | Type | Description |
|---|---|---|
| browserWindow | ElectronBrowserWindow | The parent window. |
| options | ElectronMessageBoxSyncOptions | The message box options. |
Returns: number — The index of the clicked button.
Unofficial
Shows a message box dialog, blocking the process until it is closed.Signature:
showMessageBoxSync(options: ElectronMessageBoxSyncOptions): numberParameters:
| Parameter | Type | Description |
|---|---|---|
| options | ElectronMessageBoxSyncOptions | The message box options. |
Returns: number — The index of the clicked button.