Gets the children of the TreeNode.
Namespace: MindFusion.Common.UI
File: TreeNode.js
JavaScript Copy Code |
---|
get items() {} |
An instance of the ObservableCollection class that represents the children.
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 then another node and adds the second one to the items collection of the first node.
JavaScript Copy Code |
---|
var treeView = new ui.TreeView(document.getElementById("treeView")); // create a tree node that will be a root in our hierarchy // create a tree node that will be a root in our hierarchy |