- defaultPath string (optional) - Absolute directory path, absolute file.
- Cannot be displayed on some Linux desktop environments.
- title string (optional) - The dialog title.
- (For return values, see table here.)ĭialog.showSaveDialogSync(options) securityScopedBookmarks must be enabled for this to be populated.
- bookmarks string (optional) macOS mas - An array matching the filePaths array of base64 encoded strings which contains security scoped bookmark data.
- If the dialog is cancelled this will be an empty array.
- filePaths string - An array of file paths chosen by the user.
- canceled boolean - whether or not the dialog was canceled.
- Returns Promise - Resolve with an object containing the following: For example:ĭialog.showOpenDialog(options) Selected when you want to limit the user to a specific type. The filters specifies an array of file types that can be displayed or
The browserWindow argument allows the dialog to attach itself to a parent window, making it modal. Returns string | undefined, the file paths chosen by the user if the dialog is cancelled it returns undefined.
securityScopedBookmarks boolean (optional) macOS mas - Create security scoped bookmarks when packaged for the Mac App Store.message string (optional) macOS - Message to display above input.dontAddToRecent Windows - Do not add the item being opened to the recent documents list.treatPackageAsDirectory macOS - Treat packages, such as.Selected aliases will now return the alias path instead of noResolveAliases macOS - Disable the automatic alias (symlink) path.The path but allows non-existent paths to be returned that should be This does not actually create the file at promptToCreate Windows - Prompt for creation if the file path entered.createDirectory macOS - Allow creating new directories from dialog.showHiddenFiles - Show hidden files in dialog.multiSelections - Allow multiple paths to be selected.openDirectory - Allow directories to be selected.properties string (optional) - Contains which features the dialog should.
Left empty the default label will be used.
- buttonLabel string (optional) - Custom label for the confirmation button, when.
- The dialog module has the following methods: dialog.showOpenDialogSync(options)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |