跳到主要内容
版本:Next

Class: TreeNodeModel

molecule.model.TreeNodeModel

Implements

Constructors

constructor

new TreeNodeModel(props)

Parameters

NameType
propsIFolderTreeNodeProps

Defined in

model/workbench/explorer/folderTree.tsx:67

Properties

children

Optional children: IFolderTreeNodeProps[]

The children of this tree node

Implementation of

IFolderTreeNodeProps.children

Defined in

model/workbench/explorer/folderTree.tsx:60


content

Optional content: string

Implementation of

IFolderTreeNodeProps.content

Defined in

model/workbench/explorer/folderTree.tsx:63


data

Optional data: any

Store the custom data

Implementation of

IFolderTreeNodeProps.data

Defined in

model/workbench/explorer/folderTree.tsx:65


fileType

fileType: "File" | "Folder" | "RootFolder" = FileTypes.File

Implementation of

IFolderTreeNodeProps.fileType

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

IFolderTreeNodeProps.icon

Defined in

model/workbench/explorer/folderTree.tsx:61


id

id: UniqueId

The unique id in tree node

Implementation of

IFolderTreeNodeProps.id

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

IFolderTreeNodeProps.isLeaf

Defined in

model/workbench/explorer/folderTree.tsx:58


location

Optional location: string

Implementation of

IFolderTreeNodeProps.location

Defined in

model/workbench/explorer/folderTree.tsx:57


name

Optional name: string

The name of this tree node

Implementation of

IFolderTreeNodeProps.name

Defined in

model/workbench/explorer/folderTree.tsx:56