콘텐츠로 이동

SaveDialogOptions

이 콘텐츠는 아직 번역되지 않았습니다.

Module @netwiv/api/plugins/dialog · Kind Interface

import { SaveDialogOptions } from '@netwiv/api/plugins/dialog';

Options for the save dialog.

canCreateDirectories?: boolean | undefined

Whether to allow creating directories in the dialog. Enabled by default. macOS Only

defaultPath?: string | undefined

Initial 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.

filters?: DialogFilter[] | undefined

The filters of the dialog.

title?: string | undefined

The title of the dialog window (desktop only).

Upstream since 2.0.0


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.