Chonky v2.1.0 Docs
IntroductionInstallation & usageFile Browser demosMigrating from 1.xFAQ
Basics

File browser handle

See File browser handle page for usage instructions.

FileBrowserHandle Interface

File browser methods exposed to developers via the FileBrowser ref.

Source code on GitHub: src/types/file-browser.types.ts

getFileSelection:() => Set<string>
Method

Method used to get the current file selection.

setFileSelection:(selection: Set<string>, reset?: boolean) => void
Method

Method used to set the current file selection.

requestFileAction:(action: Action, payload: Action['__payloadType']) => Promise<void>
Method

Method used to programatically trigger file actions in Chonky.

If you have a question, want to request a feature or report a bug, please create an issue on GitHub. You can also report inaccurate or unclear documentation on Chonky's Discord server.