Skip to main content

Interface: TreeDataProvider<T>

Type parameters

NameType
Tany

Implemented by

Properties

getTreeItem

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

Type declaration

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

Parameters
NameType
itemIdTreeItemIndex
Returns

Promise<TreeItem<T>>

Defined in

types.ts:449


getTreeItems

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

Type declaration

▸ (itemIds): Promise<TreeItem<any>[]>

Parameters
NameType
itemIdsTreeItemIndex[]
Returns

Promise<TreeItem<any>[]>

Defined in

types.ts:450


onChangeItemChildren

Optional onChangeItemChildren: (itemId: TreeItemIndex, newChildren: TreeItemIndex[]) => Promise<void>

Type declaration

▸ (itemId, newChildren): Promise<void>

Parameters
NameType
itemIdTreeItemIndex
newChildrenTreeItemIndex[]
Returns

Promise<void>

Defined in

types.ts:452


onDidChangeTreeData

Optional onDidChangeTreeData: (listener: (changedItemIds: TreeItemIndex[]) => void) => Disposable

Type declaration

▸ (listener): Disposable

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

Disposable

Defined in

types.ts:446


onRenameItem

Optional onRenameItem: (item: TreeItem<T>, name: string) => Promise<void>

Type declaration

▸ (item, name): Promise<void>

Parameters
NameType
itemTreeItem<T>
namestring
Returns

Promise<void>

Defined in

types.ts:451