Contents

SaveDialogFeatures

The features of a file save dialog.

Example 

import { app } from '@mobrowser/api';

const win = app.createWindow()
const result = await app.showSaveDialog({
  parentWindow: win,
  features: {
    canCreateDirectories: true,
    showHiddenFiles: true
  }
})

Properties 

showHiddenFiles 

readonly showHiddenFiles?: boolean;

Whether the dialog shows hidden files and allows selecting them. Default: false

canCreateDirectories 

readonly canCreateDirectories?: boolean;

Whether the dialog allows creating new directories. Default: true

treatPackageAsDirectories 

readonly treatPackageAsDirectories?: boolean;

Whether the dialog treats packages (e.g., *.app) as directories and allows navigating into them (macOS only). Default: false