Liking cljdoc? Tell your friends :D

dots.vscode.open-dialog-options

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 and canSelectFolders to true on these platforms, a folder selector will be shown.
  • Note 2: Explicitly setting canSelectFiles and canSelectFolders to false is futile and the editor then silently adjusts the options to select files.
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` and `canSelectFolders` to `true` on these platforms, a folder selector will be shown.
* Note 2: Explicitly setting `canSelectFiles` and `canSelectFolders` to `false` is futile
and the editor then silently adjusts the options to select files.
raw docstring

can-select-files?cljs

(can-select-files? open-dialog-options)

Allow to select files, defaults to true.

Returns: boolean | undefined

Allow to select files, defaults to `true`.

**Returns:** `boolean | undefined`
sourceraw docstring

can-select-folders?cljs

(can-select-folders? open-dialog-options)

Allow to select folders, defaults to false.

Returns: boolean | undefined

Allow to select folders, defaults to `false`.

**Returns:** `boolean | undefined`
sourceraw docstring

can-select-many?cljs

(can-select-many? open-dialog-options)

Allow to select many files or folders.

Returns: boolean | undefined

Allow to select many files or folders.

**Returns:** `boolean | undefined`
sourceraw docstring

default-uricljs

(default-uri open-dialog-options)

The resource the dialog shows when opened.

Returns: Uri | undefined

The resource the dialog shows when opened.

**Returns:** `Uri | undefined`
sourceraw docstring

filterscljs

(filters open-dialog-options)

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, for example:

{
	'Images': ['png', 'jpg'],
	'TypeScript': ['ts', 'tsx']
}

Returns: { [name: string]: string[]; } | undefined

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, for example:
```ts
{
	'Images': ['png', 'jpg'],
	'TypeScript': ['ts', 'tsx']
}
```

**Returns:** `{ [name: string]: string[]; } | undefined`
sourceraw docstring

open-labelcljs

(open-label open-dialog-options)

A human-readable string for the open button.

Returns: string | undefined

A human-readable string for the open button.

**Returns:** `string | undefined`
sourceraw docstring

set-can-select-files!cljs

(set-can-select-files! open-dialog-options value)

Allow to select files, defaults to true.

Allow to select files, defaults to `true`.
sourceraw docstring

set-can-select-folders!cljs

(set-can-select-folders! open-dialog-options value)

Allow to select folders, defaults to false.

Allow to select folders, defaults to `false`.
sourceraw docstring

set-can-select-many!cljs

(set-can-select-many! open-dialog-options value)

Allow to select many files or folders.

Allow to select many files or folders.
sourceraw docstring

set-default-uri!cljs

(set-default-uri! open-dialog-options value)

The resource the dialog shows when opened.

The resource the dialog shows when opened.
sourceraw docstring

set-filters!cljs

(set-filters! open-dialog-options value)

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, for example:

{
	'Images': ['png', 'jpg'],
	'TypeScript': ['ts', 'tsx']
}
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, for example:
```ts
{
	'Images': ['png', 'jpg'],
	'TypeScript': ['ts', 'tsx']
}
```
sourceraw docstring

set-open-label!cljs

(set-open-label! open-dialog-options value)

A human-readable string for the open button.

A human-readable string for the open button.
sourceraw docstring

set-title!cljs

(set-title! open-dialog-options value)

Dialog title.

This parameter might be ignored, as not all operating systems display a title on open dialogs (for example, macOS).

Dialog title.

This parameter might be ignored, as not all operating systems display a title on open dialogs
(for example, macOS).
sourceraw docstring

titlecljs

(title open-dialog-options)

Dialog title.

This parameter might be ignored, as not all operating systems display a title on open dialogs (for example, macOS).

Returns: string | undefined

Dialog title.

This parameter might be ignored, as not all operating systems display a title on open dialogs
(for example, macOS).

**Returns:** `string | undefined`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close