Function · Desktop Services
showOpenFileDialog
Displays a native open-file dialog.
@sharpts/gui 0.0.0-local · SharpTS 7c6010104a43Signature
TypeScript
showOpenFileDialog(options: OpenFileDialogOptions = {}): Promise<string[]>Parameters
| Name | Type | Description |
|---|---|---|
options | OpenFileDialogOptionsDefault: {} | Title, multi-select, and filter options. |
Returns
Promise<string[]> — The selected file paths, or an empty array when canceled.
Related symbols
Source
SharpTS.Gui.Sdk/GuiPackage/runtime.ts:1396 at SharpTS revision 7c6010104a43c34d80e9d44704cf179bc4f5b8e0.