FileDialogMode

Defines the mode of the file dialog used in a FileValue.

TODO: i18n

This controls how the file chooser behaves in the UI (e.g., ClickGUI or similar):

  • OPEN_FILE: Opens a dialog to select an existing file.

  • SAVE_FILE: Opens a dialog to choose a file path for saving.

  • OPEN_DIRECTORY: Opens a dialog to select an existing directory. File extension filters are ignored in this mode.

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun selectFiles(extensions: Iterable<String>? = null): List<String>
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.