TreeView control

See Use treeview for basic usage and advanced samples.

Create a treeview

TypeScript

import Controls = require("VSS/Controls");
import TreeView = require("VSS/Controls/TreeView");

// Create the treeView in a container element
var treeview = Controls.create(TreeView.TreeView, container, options);

JavaScript

require(["VSS/Controls", "VSS/Controls/TreeView"], function(Controls, TreeView) {
    // Create the treeView in a container element
    var treeview = Controls.create(TreeView.TreeView, container, options);
});