Skip to content

ElectronDialog.showOpenDialog method

ElectronDialog › showOpenDialog

Unofficial

Shows an open file dialog.

Signature:

showOpenDialog(browserWindow: ElectronBrowserWindow, options: ElectronOpenDialogOptions): Promise<ElectronOpenDialogReturnValue>

Parameters:

ParameterTypeDescription
browserWindowElectronBrowserWindowThe parent window.
optionsElectronOpenDialogOptionsThe open dialog options.

Returns: Promise<ElectronOpenDialogReturnValue>The selected file paths.


Unofficial

Shows an open file dialog.

Signature:

showOpenDialog(options: ElectronOpenDialogOptions): Promise<ElectronOpenDialogReturnValue>

Parameters:

ParameterTypeDescription
optionsElectronOpenDialogOptionsThe open dialog options.

Returns: Promise<ElectronOpenDialogReturnValue>The selected file paths.