| CARVIEW |
Select Language
HTTP/2 301
server: nginx
date: Sat, 27 Dec 2025 21:33:11 GMT
content-type: text/html
content-length: 162
location: /api-reference/tree-data-provider/
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
strict-transport-security: max-age=31536000;
HTTP/2 200
server: nginx
date: Sat, 27 Dec 2025 21:33:11 GMT
content-type: text/html
last-modified: Tue, 26 Aug 2025 18:14:18 GMT
vary: Accept-Encoding
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
content-encoding: gzip
strict-transport-security: max-age=31536000;
TreeDataProvider - Nova
RESULTS:
No Results
Building Extensions
Contributing Languages
JavaScript API Reference
TreeDataProvider
An interface for objects that provided data to a TreeView
A TreeDataProvider interface should be implemented by objects that provide data to a TreeView.
The elements provided as data objects by a TreeDataProvider may be any valid JavaScript object.
interface TreeDataProvider {
getChildren(element);
getParent(element);
getTreeItem(element);
}
Methods
getChildren(element)
Returns an array of children for an element (or a Promise that resolves to it). The element will be null for the root of the tree.
getParent(element)
Returns the parent of an element. This is an optional method used for the TreeView reveal() API.
getTreeItem(element)
Returns the TreeItem representation of an element.