Skip to main content

Class: TreeNodeModel

model.TreeNodeModel

Implements

Table of contents

Constructors

Properties

Constructors

constructor

new TreeNodeModel(props): TreeNodeModel

Parameters

NameType
propsIFolderTreeNodeProps

Returns

TreeNodeModel

Defined in

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

Properties

children

Optional children: IFolderTreeNodeProps[]

Implementation of

IFolderTreeNodeProps.children

Defined in

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


content

Optional content: string

Implementation of

IFolderTreeNodeProps.content

Defined in

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


data

Optional data: any

Store the custom data

Implementation of

IFolderTreeNodeProps.data

Defined in

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


fileType

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

Implementation of

IFolderTreeNodeProps.fileType

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

IFolderTreeNodeProps.icon

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

IFolderTreeNodeProps.id

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

IFolderTreeNodeProps.isLeaf

Defined in

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


location

Optional location: string

Implementation of

IFolderTreeNodeProps.location

Defined in

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


name

Optional name: string

The name of this tree node

Implementation of

IFolderTreeNodeProps.name

Defined in

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