Skip to main content

Interface: TreeDataProvider<T>

Type parameters

NameType
Tany

Implemented by

Methods

getTreeItem

getTreeItem(itemId): Promise<TreeItem<T>>

Parameters

NameType
itemIdTreeItemIndex

Returns

Promise<TreeItem<T>>

Defined in

types.ts:371


getTreeItems

Optional getTreeItems(itemIds): Promise<TreeItem<any>[]>

Parameters

NameType
itemIdsTreeItemIndex[]

Returns

Promise<TreeItem<any>[]>

Defined in

types.ts:372


onChangeItemChildren

Optional onChangeItemChildren(itemId, newChildren): Promise<void>

Parameters

NameType
itemIdTreeItemIndex
newChildrenTreeItemIndex[]

Returns

Promise<void>

Defined in

types.ts:374


onDidChangeTreeData

Optional onDidChangeTreeData(listener): Disposable

Parameters

NameType
listener(changedItemIds: TreeItemIndex[]) => void

Returns

Disposable

Defined in

types.ts:370


onRenameItem

Optional onRenameItem(item, name): Promise<void>

Parameters

NameType
itemTreeItem<T>
namestring

Returns

Promise<void>

Defined in

types.ts:373