Class: TreeNodeModel
Implements
Constructors
constructor
• new TreeNodeModel(props)
Parameters
| Name | Type |
|---|---|
props | IFolderTreeNodeProps |
Defined in
model/workbench/explorer/folderTree.tsx:67
Properties
children
• Optional children: IFolderTreeNodeProps[]
The children of this tree node
Implementation of
Defined in
model/workbench/explorer/folderTree.tsx:60
content
• Optional content: string
Implementation of
Defined in
model/workbench/explorer/folderTree.tsx:63
data
• Optional data: any
Store the custom data
Implementation of
Defined in
model/workbench/explorer/folderTree.tsx:65
fileType
• fileType: "File" | "Folder" | "RootFolder" = FileTypes.File
Implementation of
Defined in
model/workbench/explorer/folderTree.tsx:59
icon
• Optional icon: string | Element
The icon of this tree node, which is rendered in front of the name
Implementation of
Defined in
model/workbench/explorer/folderTree.tsx:61
id
• id: UniqueId
The unique id in tree node
Implementation of
Defined in
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
model/workbench/explorer/folderTree.tsx:62
isLeaf
• Optional isLeaf: boolean
The type of this tree node.
Implementation of
Defined in
model/workbench/explorer/folderTree.tsx:58
location
• Optional location: string
Implementation of
Defined in
model/workbench/explorer/folderTree.tsx:57
name
• Optional name: string
The name of this tree node