MutkaMutka

DialogPickFileOptions

Reference — DialogPickFileOptions in the Mutka module API.

Interface: DialogPickFileOptions

Defined in: types.ts:117

Options for a Mutka file picker (a modal file browser).

Properties

fileNames?

optional fileNames?: string[];

Defined in: types.ts:123

If set, only files whose name is one of these are selectable (e.g. ["index.js"]).


initialDir?

optional initialDir?: string;

Defined in: types.ts:121

Directory to open at. Defaults to the current directory.


mode?

optional mode?: "file" | "folder" | "any";

Defined in: types.ts:125

What can be picked: "file" (default), "folder", or "any".


title?

optional title?: string;

Defined in: types.ts:119

Title shown on the picker.

On this page