OpenDialogOptions class
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.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
- @anonymous
Constructors
Properties
- canSelectFiles ↔ bool?
-
Available on OpenDialogOptions, provided by the OpenDialogOptions$Typings extension
Allow to select files, defaults totrue
.getter/setter pair - canSelectFolders ↔ bool?
-
Available on OpenDialogOptions, provided by the OpenDialogOptions$Typings extension
Allow to select folders, defaults tofalse
.getter/setter pair - canSelectMany ↔ bool?
-
Available on OpenDialogOptions, provided by the OpenDialogOptions$Typings extension
Allow to select many files or folders.getter/setter pair - defaultUri ↔ Uri?
-
Available on OpenDialogOptions, provided by the OpenDialogOptions$Typings extension
The resource the dialog shows when opened.getter/setter pair - filters ↔ Object?
-
Available on OpenDialogOptions, provided by the OpenDialogOptions$Typings extension
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.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- openLabel ↔ String?
-
Available on OpenDialogOptions, provided by the OpenDialogOptions$Typings extension
A human-readable string for the open button.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title ↔ String?
-
Available on OpenDialogOptions, provided by the OpenDialogOptions$Typings extension
Dialog title.getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited