Skip to content

@jakguru/vueprint / @jakguru/vueprint/utilities/files / SaveFilePickerOptions

Interface: SaveFilePickerOptions

@jakguru/vueprint/utilities/files.SaveFilePickerOptions

Describes the shape of the SaveFilePickerOptions object

See

https://developer.mozilla.org/en-US/docs/Web/API/Window/showSaveFilePicker#options

Properties

excludeAcceptAllOption

Optional excludeAcceptAllOption: boolean

A boolean value that defaults to false. By default the picker should include an option to not apply any file type filters (instigated with the type option below). Setting this option to true means that option is not available.

Defined in

src/utilities/files.ts:64


id

Optional id: string

By specifying an ID, the browser can remember different directories for different IDs. If the same ID is used for another picker, the picker opens in the same directory.

Defined in

src/utilities/files.ts:68


startIn

Optional startIn: FileSystemHandle | "desktop" | "documents" | "downloads" | "music" | "pictures" | "videos"

An Array of allowed file types to pick. Each item is an object with the following options:

Defined in

src/utilities/files.ts:76


suggestedName

Optional suggestedName: string

The suggested name for the file to save.

Defined in

src/utilities/files.ts:72


types

Optional types: FilePickerAcceptType[]

An Array of allowed file types to save. Each item is an object with the following options:

Defined in

src/utilities/files.ts:87

Vueprint is a commercial work product released under the MIT License and is provided as-is with no warranty or guarantee of support.