Skip to content

ElectronOpenDialogOptions

Unofficial

Options for Electron open file dialog.

Import:

import type { ElectronOpenDialogOptions } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface ElectronOpenDialogOptions

Properties

PropertyTypeDescription
buttonLabel?stringThe label for the confirmation button.
defaultPath?stringThe default path to open the dialog at.
filters?ElectronFileFilter[]The file filters to display.
message?stringThe message to display above the dialog on macOS.
properties?Array<
| 'createDirectory'
| 'dontAddToRecent'
| 'multiSelections'
| 'noResolveAliases'
| 'openDirectory'
| 'openFile'
| 'promptToCreate'
| 'showHiddenFiles'
| 'treatPackageAsDirectory'
>
The dialog behavior properties.
securityScopedBookmarks?booleanWhether to create security scoped bookmarks when packaged for the Mac App Store (macOS, mas only).
title?stringThe dialog title.