File tree Expand file tree Collapse file tree 6 files changed +95
-2
lines changed Expand file tree Collapse file tree 6 files changed +95
-2
lines changed Original file line number Diff line number Diff line change 13
13
- [ ExecResultV0] ( interfaces/ExecResultV0.md )
14
14
- [ RequestConfigV0] ( interfaces/RequestConfigV0.md )
15
15
- [ BackendV0] ( interfaces/BackendV0.md )
16
+ - [ OpenDialogResult] ( interfaces/OpenDialogResult.md )
17
+ - [ Dialog] ( interfaces/Dialog.md )
16
18
- [ Docker] ( interfaces/Docker.md )
17
19
- [ DockerCommand] ( interfaces/DockerCommand.md )
18
20
- [ Exec] ( interfaces/Exec.md )
21
+ - [ ExecProcess] ( interfaces/ExecProcess.md )
19
22
- [ ExecStreamOptions] ( interfaces/ExecStreamOptions.md )
20
23
- [ ExecResult] ( interfaces/ExecResult.md )
21
24
- [ RawExecResult] ( interfaces/RawExecResult.md )
Original file line number Diff line number Diff line change 5
5
### Properties
6
6
7
7
- [ toast] ( DesktopUI.md#toast )
8
+ - [ dialog] ( DesktopUI.md#dialog )
8
9
- [ navigate] ( DesktopUI.md#navigate )
9
10
10
11
## Properties
15
16
16
17
___
17
18
19
+ ### dialog
20
+
21
+ • ` Readonly ` ** dialog** : [ ` Dialog ` ] ( Dialog.md )
22
+
23
+ ___
24
+
18
25
### navigate
19
26
20
27
• ` Readonly ` ** navigate** : [ ` NavigationIntents ` ] ( NavigationIntents.md )
Original file line number Diff line number Diff line change
1
+ # Interface: Dialog
2
+
3
+ Allows to open native dialog boxes.
4
+
5
+ ## Table of contents
6
+
7
+ ### Methods
8
+
9
+ - [ showOpenDialog] ( Dialog.md#showopendialog )
10
+
11
+ ## Methods
12
+
13
+ ### showOpenDialog
14
+
15
+ ▸ ** showOpenDialog** (` dialogProperties ` ): ` Promise ` <[ ` OpenDialogResult ` ] ( OpenDialogResult.md ) \>
16
+
17
+ Display a native open dialog, allowing to select a file or a folder.
18
+
19
+ ``` typescript
20
+ ddClient .desktopUI .dialog .showOpenDialog ({properties: [' openFile' ]});
21
+ ```
22
+
23
+ #### Parameters
24
+
25
+ | Name | Type | Description |
26
+ | :------ | :------ | :------ |
27
+ | ` dialogProperties ` | ` any ` | properties to specify the open dialog behaviour, see https://www.electronjs.org/docs/latest/api/dialog#dialogshowopendialogbrowserwindow-options. |
28
+
29
+ #### Returns
30
+
31
+ ` Promise ` <[ ` OpenDialogResult ` ] ( OpenDialogResult.md ) \>
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ A promise that will resolve once the command finishes.
23
23
24
24
### Exec
25
25
26
- ▸ ** Exec** (` cmd ` , ` args ` , ` options ` ): ` void `
26
+ ▸ ** Exec** (` cmd ` , ` args ` , ` options ` ): [ ` ExecProcess ` ] ( ExecProcess.md )
27
27
28
28
Streams the result of a command if ` stream ` is specified in the ` options ` parameter.
29
29
@@ -40,4 +40,4 @@ Specify the `stream` if the output of your command is too long or if you need to
40
40
41
41
#### Returns
42
42
43
- ` void `
43
+ [ ` ExecProcess ` ] ( ExecProcess.md )
Original file line number Diff line number Diff line change
1
+ # Interface: ExecProcess
2
+
3
+ ## Table of contents
4
+
5
+ ### Methods
6
+
7
+ - [ close] ( ExecProcess.md#close )
8
+
9
+ ## Methods
10
+
11
+ ### close
12
+
13
+ ▸ ** close** (): ` void `
14
+
15
+ Close the process started by exec(streamingOptions)
16
+
17
+ #### Returns
18
+
19
+ ` void `
Original file line number Diff line number Diff line change
1
+ # Interface: OpenDialogResult
2
+
3
+ ## Table of contents
4
+
5
+ ### Properties
6
+
7
+ - [ canceled] ( OpenDialogResult.md#canceled )
8
+ - [ filePaths] ( OpenDialogResult.md#filepaths )
9
+ - [ bookmarks] ( OpenDialogResult.md#bookmarks )
10
+
11
+ ## Properties
12
+
13
+ ### canceled
14
+
15
+ • ` Readonly ` ** canceled** : ` boolean `
16
+
17
+ whether or not the dialog was canceled.
18
+
19
+ ___
20
+
21
+ ### filePaths
22
+
23
+ • ` Readonly ` ** filePaths** : ` string ` [ ]
24
+
25
+ An array of file paths chosen by the user. If the dialog is cancelled this will be an empty array.
26
+
27
+ ___
28
+
29
+ ### bookmarks
30
+
31
+ • ` Optional ` ` Readonly ` ** bookmarks** : ` string ` [ ]
32
+
33
+ macOS only- An array matching the filePaths array of base64 encoded strings which contains security scoped bookmark data. securityScopedBookmarks must be enabled for this to be populated
You can’t perform that action at this time.
0 commit comments