@jsvision/files / ChDirDialogOptions
Interface: ChDirDialogOptions
Defined in: files/src/dialog/chdir-dialog.ts:25
Construction options for ChDirDialog.
Properties
directory?
optionaldirectory?:Signal<string>
Defined in: files/src/dialog/chdir-dialog.ts:29
The current directory (default the filesystem's cwd). Shared with the tree.
fs?
optionalfs?:FileSystem
Defined in: files/src/dialog/chdir-dialog.ts:27
The filesystem to read through (default nodeFileSystem).
historyId?
optionalhistoryId?:number
Defined in: files/src/dialog/chdir-dialog.ts:33
The id keying this dialog's recent-path history (default a chdir id distinct from the file dialog).
onResolve?
optionalonResolve?: (path) =>void
Defined in: files/src/dialog/chdir-dialog.ts:37
Called when the dialog resolves — with the chosen absolute directory, or null on cancel.
Parameters
path
string | null
Returns
void
showError?
optionalshowError?: (message) =>void
Defined in: files/src/dialog/chdir-dialog.ts:35
Called to show an error (unreadable directory). Wire it to errorBox in an app.
Parameters
message
string
Returns
void
title?
optionaltitle?:string
Defined in: files/src/dialog/chdir-dialog.ts:31
The dialog title (default 'Change Directory').