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:

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

ParameterTypeDescription
optionsElectronSaveDialogSyncOptionsThe save dialog options.

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