Deselects a TreeNode.
Namespace: MindFusion.Common.UI
File: TreeView.js
JavaScript Copy Code |
---|
function deselectNode (node, [deselectChildren]) |
An instance of the TreeNode class to deselect.
Boolean. True to deselect all of the node's children, otherwise false.
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 tree view. The root node and all its children are deselected.
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 treeview.deselect(body, true); |