Represents a tree view control.
Namespace: MindFusion.Common.UI
File: TreeView.js
JavaScript Copy Code |
---|
// class |
TreeView is also available as a React component.
The following code creates a new TreeView element using a <div> element with id "treeview" initialized in an HTML page. Then it creates a TreeNode item and adds it to the items collection of the TreeView.
JavaScript Copy Code |
---|
var treeView = new ui.TreeView(document.getElementById("treeView")); // create a tree node that will be a root in our hierarchy |
MindFusion.Common.UI.Control
MindFusion.Common.UI.ListContainer
MindFusion.Common.UI.TreeView