Files
docker-docs/desktop/extensions-sdk/dev/api/reference/interfaces/Dialog.md
Guillaume Tardif efb9ca8caf Extension sdk update (#15687)
* Update extension SDK with new APIs for exec with ENV vars and CWD

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>

* Update extension SDK with new APIs for exec with ENV vars and CWD

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2022-09-20 09:46:44 +01:00

34 lines
818 B
Markdown

---
description: Docker extension API reference
keywords: Docker, extensions, sdk, API, reference
skip_read_time: true
---
# Interface: Dialog
Allows opening native dialog boxes.
**`since`** 0.2.3
## Methods
### showOpenDialog
**showOpenDialog**(`dialogProperties`): `Promise`<[`OpenDialogResult`](OpenDialogResult.md)\>
Display a native open dialog, allowing to select a file or a folder.
```typescript
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-options. |
#### Returns
`Promise`<[`OpenDialogResult`](OpenDialogResult.md)\>