@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
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
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
suggestedName
• Optional
suggestedName: string
The suggested name for the file to save.
Defined in
types
• Optional
types: FilePickerAcceptType
[]
An Array of allowed file types to save. Each item is an object with the following options: