FileTreeViewModel
Import :
const FileTreeViewModel = brackets.getModule("project/FileTreeViewModel")
Contains the treeData used to generate the file tree and methods used to update that
treeData.
Instances dispatch the following events:
- change (FileTreeViewModel.EVENT_CHANGE constant): Fired any time theres a change that should be reflected in the view. Kind: global class
Immutable
The view model (or a Store in the Flux terminology) used by the file tree.
Many of the view model's methods are implemented by pure functions, which can be helpful for composability. Many of the methods commit the new treeData and send a change event when they're done whereas the functions do not do this.
Kind: global variable
EVENT_CHANGE : string
Kind: global constant
isFile(entry) ⇒ boolean
Determine if an entry from the treeData map is a file.
Kind: global function
Returns: boolean
- true if this is a file and not a directory
Param | Type | Description |
---|---|---|
entry | Immutable.Map | entry to test |