Contents

OpenDialogFeatures

The features of a file open dialog.

Example 

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

const win = app.createWindow()
app.showOpenDialog({
  parentWindow: win,
  title: 'Open File',
  selectionPolicy: 'files',
  features: { allowMultiple: true }
})

Properties 

allowMultiple 

readonly allowMultiple?: boolean;

Whether the dialog allows selecting multiple files. Default: false

canCreateDirectories 

readonly canCreateDirectories?: boolean;

Whether the dialog allows creating new directories. Default: true

showHiddenFiles 

readonly showHiddenFiles?: boolean;

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

readonly resolveSymlinks?: boolean;

Whether the dialog resolves symlinks (macOS only). Default: false

treatPackageAsDirectories 

readonly treatPackageAsDirectories?: boolean;

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