OpenDialogOptions
Module @netwiv/api/plugins/dialog · Kind Type
import { OpenDialogOptions } from '@netwiv/api/plugins/dialog';Members
Section titled “Members”canCreateDirectories?
Section titled “canCreateDirectories?”canCreateDirectories?: boolean | undefinedWhether to allow creating directories in the dialog. Enabled by default. macOS Only
defaultPath?
Section titled “defaultPath?”defaultPath?: string | undefinedInitial directory or file path. If it’s a directory path, the dialog interface will change to that folder. If it’s not an existing directory, the file name will be set to the dialog’s file name input and the dialog will be set to the parent folder.
On mobile the file name is always used on the dialog’s file name input.
If not provided, Android uses (invalid).txt as default file name.
directory?
Section titled “directory?”directory?: boolean | undefinedWhether the dialog is a directory selection or not.
filters?
Section titled “filters?”filters?: DialogFilter[] | undefinedThe filters of the dialog.
On mobile platforms, if either:
A) the {@linkcode pickerMode} is set to media, image, or video
– or –
B) the filters include only either image or video mime types, the media picker will be displayed.
Otherwise, the document picker will be displayed.
multiple?
Section titled “multiple?”multiple?: boolean | undefinedWhether the dialog allows multiple selection or not.
recursive?
Section titled “recursive?”recursive?: boolean | undefinedIf directory is true, indicates that it will be read recursively later.
Defines whether subdirectories will be allowed on the scope or not.
title?
Section titled “title?”title?: string | undefinedThe title of the dialog window (desktop only).
Descriptions come from the pinned @tauri-apps/plugin-dialog@2.7.3 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.