ElectronDialog.showSaveDialogSync method
ElectronDialog › showSaveDialogSync
Unofficial
Shows a save file dialog, blocking the process until it is closed.Signature:
showSaveDialogSync(browserWindow: ElectronBrowserWindow, options: ElectronSaveDialogSyncOptions): string | undefinedParameters:
| Parameter | Type | Description |
|---|---|---|
| browserWindow | ElectronBrowserWindow | The parent window. |
| options | ElectronSaveDialogSyncOptions | The save dialog options. |
Returns: string | undefined — The path of the file chosen by the user, or undefined if the dialog is cancelled.
Unofficial
Shows a save file dialog, blocking the process until it is closed.Signature:
showSaveDialogSync(options: ElectronSaveDialogSyncOptions): string | undefinedParameters:
| Parameter | Type | Description |
|---|---|---|
| options | ElectronSaveDialogSyncOptions | The save dialog options. |
Returns: string | undefined — The path of the file chosen by the user, or undefined if the dialog is cancelled.