Documentation
On this page

Function · Desktop Services

showSaveFileDialog

Displays a native save-file dialog.

@sharpts/gui 0.0.0-local · SharpTS 7c6010104a43

Signature

TypeScript
showSaveFileDialog(options: SaveFileDialogOptions = {}): Promise<string | null>

Parameters

NameTypeDescription
optionsSaveFileDialogOptions
Default: {}
Title, suggested name, extension, and filter options.

Returns

Promise<string | null> — The selected file path, or null when canceled.

Source

SharpTS.Gui.Sdk/GuiPackage/runtime.ts:1434 at SharpTS revision 7c6010104a43c34d80e9d44704cf179bc4f5b8e0.