Class: StaticTreeDataProvider<T>
Type parameters
Name | Type |
---|---|
T | any |
Implements
Constructors
constructor
• new StaticTreeDataProvider<T
>(items
, setItemName?
)
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type |
---|---|
items | Record <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
Name | Type |
---|---|
item | TreeItem <T > |
newName | string |
Returns
TreeItem
<T
>
Defined in
uncontrolledEnvironment/StaticTreeDataProvider.ts:18
Methods
getTreeItem
▸ getTreeItem(itemId
): Promise
<TreeItem
<any
>>
Parameters
Name | Type |
---|---|
itemId | TreeItemIndex |
Returns
Promise
<TreeItem
<any
>>
Implementation of
TreeDataProvider.getTreeItem
Defined in
uncontrolledEnvironment/StaticTreeDataProvider.ts:29
onChangeItemChildren
▸ onChangeItemChildren(itemId
, newChildren
): Promise
<void
>
Parameters
Name | Type |
---|---|
itemId | TreeItemIndex |
newChildren | TreeItemIndex [] |
Returns
Promise
<void
>
Implementation of
TreeDataProvider.onChangeItemChildren
Defined in
uncontrolledEnvironment/StaticTreeDataProvider.ts:33
onDidChangeTreeData
▸ onDidChangeTreeData(listener
): Disposable
Parameters
Name | Type |
---|---|
listener | (changedItemIds : TreeItemIndex []) => void |
Returns
Implementation of
TreeDataProvider.onDidChangeTreeData
Defined in
uncontrolledEnvironment/StaticTreeDataProvider.ts:41
onRenameItem
▸ onRenameItem(item
, name
): Promise
<void
>
Parameters
Name | Type |
---|---|
item | TreeItem <any > |
name | string |
Returns
Promise
<void
>
Implementation of
TreeDataProvider.onRenameItem