Class: TreeNodeModel
model.TreeNodeModel
Implements
Table of contents
Constructors
Properties
Constructors
constructor
• new TreeNodeModel(props
): TreeNodeModel
Parameters
Name | Type |
---|---|
props | IFolderTreeNodeProps |
Returns
Defined in
src/model/workbench/explorer/folderTree.tsx:75
Properties
children
• Optional
children: IFolderTreeNodeProps
[]
Implementation of
Defined in
src/model/workbench/explorer/folderTree.tsx:65
content
• Optional
content: string
Implementation of
Defined in
src/model/workbench/explorer/folderTree.tsx:71
data
• Optional
data: any
Store the custom data
Implementation of
Defined in
src/model/workbench/explorer/folderTree.tsx:73
fileType
• fileType: "File"
| "Folder"
| "RootFolder"
= FileTypes.File
Implementation of
Defined in
src/model/workbench/explorer/folderTree.tsx:63
icon
• Optional
icon: string
| Element
The icon of this tree node, which is rendered in front of the name
Implementation of
Defined in
src/model/workbench/explorer/folderTree.tsx:67
id
• id: UniqueId
The unique id in tree node
Aware
Please be aware of that id should be global unique
Implementation of
Defined in
src/model/workbench/explorer/folderTree.tsx:55
isEditable
• Optional
isEditable: boolean
The status of editable, mark whether the node is being edited
Implementation of
IFolderTreeNodeProps.isEditable
Defined in
src/model/workbench/explorer/folderTree.tsx:69
isLeaf
• Optional
isLeaf: boolean
The type of this tree node.
Implementation of
Defined in
src/model/workbench/explorer/folderTree.tsx:61
location
• Optional
location: string
Implementation of
Defined in
src/model/workbench/explorer/folderTree.tsx:59
name
• Optional
name: string
The name of this tree node