Options to configure the behaviour of a file open dialog.
- Note 1: On Windows and Linux, a file dialog cannot be both a file selector and a folder selector, so if you
set both
canSelectFiles
andcanSelectFolders
totrue
on these platforms, a folder selector will be shown. - Note 2: Explicitly setting
canSelectFiles
andcanSelectFolders
tofalse
is futile and the editor then silently adjusts the options to select files.
Fields
optionaltitle:Null<String>
Dialog title.
This parameter might be ignored, as not all operating systems display a title on open dialogs (for example, macOS).
optionalfilters:Null<DynamicAccess<Array<String>>>
A set of file filters that are used by the dialog. Each entry is a human-readable label, like "TypeScript", and an array of extensions, e.g.
{
'Images': ['png', 'jpg']
'TypeScript': ['ts', 'tsx']
}