Skip to main content

Class: StaticTreeDataProvider<T>

Type parameters

NameType
Tany

Implements

Constructors

constructor

new StaticTreeDataProvider<T>(items, setItemName?)

Type parameters

NameType
Tany

Parameters

NameType
itemsRecord<TreeItemIndex, TreeItem<T>>
setItemName?(item: TreeItem<T>, newName: string) => TreeItem<T>

Defined in

uncontrolledEnvironment/StaticTreeDataProvider.ts:20

Properties

data

Private data: ExplicitDataSource<any>

Defined in

uncontrolledEnvironment/StaticTreeDataProvider.ts:11


onDidChangeTreeDataEmitter

Readonly onDidChangeTreeDataEmitter: EventEmitter<TreeItemIndex[]>

Emit an event with the changed item ids to notify the tree view about changes.

Defined in

uncontrolledEnvironment/StaticTreeDataProvider.ts:14


setItemName

Private Optional setItemName: (item: TreeItem<T>, newName: string) => TreeItem<T>

Type declaration

▸ (item, newName): TreeItem<T>

Parameters
NameType
itemTreeItem<T>
newNamestring
Returns

TreeItem<T>

Defined in

uncontrolledEnvironment/StaticTreeDataProvider.ts:18

Methods

getTreeItem

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

Parameters

NameType
itemIdTreeItemIndex

Returns

Promise<TreeItem<any>>

Implementation of

TreeDataProvider.getTreeItem

Defined in

uncontrolledEnvironment/StaticTreeDataProvider.ts:29


onChangeItemChildren

onChangeItemChildren(itemId, newChildren): Promise<void>

Parameters

NameType
itemIdTreeItemIndex
newChildrenTreeItemIndex[]

Returns

Promise<void>

Implementation of

TreeDataProvider.onChangeItemChildren

Defined in

uncontrolledEnvironment/StaticTreeDataProvider.ts:33


onDidChangeTreeData

onDidChangeTreeData(listener): Disposable

Parameters

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

Returns

Disposable

Implementation of

TreeDataProvider.onDidChangeTreeData

Defined in

uncontrolledEnvironment/StaticTreeDataProvider.ts:41


onRenameItem

onRenameItem(item, name): Promise<void>

Parameters

NameType
itemTreeItem<any>
namestring

Returns

Promise<void>

Implementation of

TreeDataProvider.onRenameItem

Defined in

uncontrolledEnvironment/StaticTreeDataProvider.ts:50