Interface: TreeDataProvider<T>
Type parameters
Name | Type |
---|---|
T | any |
Implemented by
Properties
getTreeItem
• getTreeItem: (itemId
: TreeItemIndex
) => Promise
<TreeItem
<T
>>
Type declaration
▸ (itemId
): Promise
<TreeItem
<T
>>
Parameters
Name | Type |
---|---|
itemId | TreeItemIndex |
Returns
Promise
<TreeItem
<T
>>
Defined in
getTreeItems
• Optional
getTreeItems: (itemIds
: TreeItemIndex
[]) => Promise
<TreeItem
<any
>[]>
Type declaration
▸ (itemIds
): Promise
<TreeItem
<any
>[]>
Parameters
Name | Type |
---|---|
itemIds | TreeItemIndex [] |
Returns
Promise
<TreeItem
<any
>[]>
Defined in
onChangeItemChildren
• Optional
onChangeItemChildren: (itemId
: TreeItemIndex
, newChildren
: TreeItemIndex
[]) => Promise
<void
>
Type declaration
▸ (itemId
, newChildren
): Promise
<void
>
Parameters
Name | Type |
---|---|
itemId | TreeItemIndex |
newChildren | TreeItemIndex [] |
Returns
Promise
<void
>
Defined in
onDidChangeTreeData
• Optional
onDidChangeTreeData: (listener
: (changedItemIds
: TreeItemIndex
[]) => void
) => Disposable
Type declaration
▸ (listener
): Disposable
Parameters
Name | Type |
---|---|
listener | (changedItemIds : TreeItemIndex []) => void |
Returns
Defined in
onRenameItem
• Optional
onRenameItem: (item
: TreeItem
<T
>, name
: string
) => Promise
<void
>
Type declaration
▸ (item
, name
): Promise
<void
>
Parameters
Name | Type |
---|---|
item | TreeItem <T > |
name | string |
Returns
Promise
<void
>