Interface: Dialog
Allows opening native dialog boxes.
Since
0.2.3
Methods
showOpenDialog
▸ showOpenDialog(dialogProperties
): Promise
<
OpenDialogResult
>
Display a native open dialog, allowing to select a file or a folder.
ddClient.desktopUI.dialog.showOpenDialog({properties: ['openFile']});
Parameters
Name | Type | Description |
---|---|---|
dialogProperties | any | Properties to specify the open dialog behaviour, see https://www.electronjs.org/docs/latest/api/dialog#dialogshowopendialogbrowserwindow-optionsopen_in_new. |
Returns
Promise
<
OpenDialogResult
>