ElectronDialog.showOpenDialogSync method
ElectronDialog › showOpenDialogSync
Unofficial
Shows an open file dialog, blocking the process until it is closed.Signature:
showOpenDialogSync(browserWindow: ElectronBrowserWindow, options: ElectronOpenDialogSyncOptions): string[] | undefinedParameters:
| Parameter | Type | Description |
|---|---|---|
| browserWindow | ElectronBrowserWindow | The parent window. |
| options | ElectronOpenDialogSyncOptions | The open dialog options. |
Returns: string[] | undefined — The file paths chosen by the user, or undefined if the dialog is cancelled.
Unofficial
Shows an open file dialog, blocking the process until it is closed.Signature:
showOpenDialogSync(options: ElectronOpenDialogSyncOptions): string[] | undefinedParameters:
| Parameter | Type | Description |
|---|---|---|
| options | ElectronOpenDialogSyncOptions | The open dialog options. |
Returns: string[] | undefined — The file paths chosen by the user, or undefined if the dialog is cancelled.