Skip to main content
Version: 0.9.0-beta.2

Class: TreeNodeModel

molecule.model.TreeNodeModel

Implements​

Constructors​

constructor​

• new TreeNodeModel(props)

Parameters​

NameType
propsIFolderTreeNodeProps

Defined in​

src/model/workbench/explorer/folderTree.tsx:63

Properties​

children​

• Optional children: IFolderTreeNodeProps[]

The children of this tree node

Implementation of​

IFolderTreeNodeProps.children

Defined in​

src/model/workbench/explorer/folderTree.tsx:56


content​

• Optional content: string

Implementation of​

IFolderTreeNodeProps.content

Defined in​

src/model/workbench/explorer/folderTree.tsx:59


data​

• Optional data: any

Store the custom data

Implementation of​

IFolderTreeNodeProps.data

Defined in​

src/model/workbench/explorer/folderTree.tsx:61


fileType​

• fileType: "File" | "Folder" | "RootFolder"

Implementation of​

IFolderTreeNodeProps.fileType

Defined in​

src/model/workbench/explorer/folderTree.tsx:55


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​

src/model/workbench/explorer/folderTree.tsx:57


id​

• id: UniqueId

The unique id in tree node

Implementation of​

IFolderTreeNodeProps.id

Defined in​

src/model/workbench/explorer/folderTree.tsx:51


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:58


isLeaf​

• Optional isLeaf: boolean

The type of this tree node.

Implementation of​

IFolderTreeNodeProps.isLeaf

Defined in​

src/model/workbench/explorer/folderTree.tsx:54


location​

• Optional location: string

Implementation of​

IFolderTreeNodeProps.location

Defined in​

src/model/workbench/explorer/folderTree.tsx:53


name​

• Optional name: string

The name of this tree node

Implementation of​

IFolderTreeNodeProps.name

Defined in​

src/model/workbench/explorer/folderTree.tsx:52