Skip to content

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 | undefined

Parameters:

Parameter Type Description
browserWindow ElectronBrowserWindow The parent window.
options ElectronSaveDialogSyncOptions The save dialog options.

Returns: string | undefinedThe 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 | undefined

Parameters:

Parameter Type Description
options ElectronSaveDialogSyncOptions The save dialog options.

Returns: string | undefinedThe path of the file chosen by the user, or undefined if the dialog is cancelled.