Options Type
Constructors
| Constructor |
Description
|
Full Usage:
Options(?title, ?defaultPath, ?buttonLabel, ?filters, ?message, ?nameFieldLabel, ?showsTagField, ?properties, ?securityScopedBookmarks)
Parameters:
string
-
The dialog title. Cannot be displayed on some _Linux_ desktop environments.
?defaultPath : string
-
Absolute directory path, absolute file path, or file name to use by default.
?buttonLabel : string
-
Custom label for the confirmation button, when left empty the default label will be used.
?filters : FileFilter[]
-
?message : string
-
⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ || Message to display above
text fields.
?nameFieldLabel : string
-
⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ || Custom label for the
text displayed in front of the filename text field.
?showsTagField : bool
-
⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ || Show the tags input
box, defaults to true.
?properties : Properties[]
-
?securityScopedBookmarks : bool
-
⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ✔ || Create a security scoped
bookmark when packaged for the Mac App Store. If this option is enabled and the file doesn't already exist a
blank file will be created at the chosen path.
Returns: Options
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.buttonLabel
|
Custom label for the confirmation button, when left empty the default label will be used. |
Full Usage:
this.defaultPath
|
Absolute directory path, absolute file path, or file name to use by default. |
Full Usage:
this.filters
|
|
Full Usage:
this.message
|
⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ Message to display above text fields. |
Full Usage:
this.nameFieldLabel
|
⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ Custom label for the text displayed in front of the filename text field. |
Full Usage:
this.properties
|
|
Full Usage:
this.securityScopedBookmarks
|
⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ✔ Create a security scoped bookmark when packaged for the Mac App Store. If this option is enabled and the file doesn't already exist a blank file will be created at the chosen path. |
Full Usage:
this.showsTagField
|
⚠ OS Compatibility: WIN ❌ | MAC ✔ | LIN ❌ | MAS ❌ Show the tags input box, defaults to true. |
Full Usage:
this.title
|
The dialog title. Cannot be displayed on some Linux desktop environments. |
fable-electron-docs-api