Gets or sets a value indicating how TreeNode-s expand/collapse will be triggered.
Namespace: MindFusion.Common.UI
File: TreeView.js
The following code creates a TreeView from an HTML <div> element called "treeview" and specifies that TreeNode-s will be expanded and collapsed when the user clicks on the header:
JavaScript Copy Code |
---|
var ui = MindFusion.UI; var treeView = new ui.TreeView(document.getElementById("treeView")); |