showSaveDialogSync

abstract external fun showSaveDialogSync(window: BaseWindow, options: SaveDialogSyncOptions): String(source)
abstract external fun showSaveDialogSync(options: SaveDialogSyncOptions): String(source)

the path of the file chosen by the user; if the dialog is cancelled it returns an empty string.

The window argument allows the dialog to attach itself to a parent window, making it modal.

The filters specifies an array of file types that can be displayed, see dialog.showOpenDialog for an example.