API overview
File Manager properties
| activePanel | Optional. Defines the active panel |
| data | Optional. An array of objects containing the files structure data |
| drive | Optional. An object with the information about file system such as the total storage capacity and the used space |
| extraInfo | Optional. Adds additional information about files/folders to the preview panel |
| icons | Optional. Defines the appearance of icons for files and folders |
| menuOptions | Optional. The function takes the context menu type name (and a file/folder data if necessary) as an input and returns customized context menu options |
| mode | Optional. Defines a display mode of the File Manager |
| panels | Optional. Defines initially opened folder and selected files/folders |
| previews | Optional. Defines how previews are generated for a file |
| readonly | Optional. Enables/disables the readonly mode |
File Manager actions
| copy-files | Fires when copying a file or folder within File Manager |
| create-file | Fires when creating a file |
| delete-files | Fires when deleting a file or folder |
| download-file | Fires when downloading a file or folder |
| filter-files | Fires when the filter state is changed |
| move-files | Fires when moving a file or folder (cutting and pasting it) |
| open-file | Fires when opening a file |
| open-tree-folder | Fires when opening or closing a folder that has child folders |
| provide-data | Allows parsing data to the File Manager widget |
| rename-file | Fires when renaming a file |
| request-data | Fires when folder data is requested |
| select-file | Fires when selecting a file |
| set-active-panel | Fires when active panel is changed |
| set-mode | Fires when the mode type is changed |
| set-path | Fires when a path is changed |
| show-preview | Fires when the visibility of the Preview panel changes |
| sort-files | Fires when sorting files |
File Manager methods
| api.detach() | Allows removing/detaching action handlers |
| api.exec() | Allows triggering the File Manager actions |
| api.getFile() | Allows getting data for a file or folder |
| api.getReactiveState() | Gets an object with the reactive properties of File Manager |
| api.getState() | Gets the state object that stores current values of most File Manager properties |
| api.getStores() | Gets an object with the DataStore properties of the Filemanager |
| api.intercept() | Allows intercepting and blocking/modifying actions |
| api.on() | Allows attaching a handler to the inner events |
| api.serialize() | Allows getting the current file structure as a plain array |
| api.setNext() | Allows adding some action into the Event Bus order |