Initializes a new instance of the TreeNode class.
Namespace: MindFusion.Common.UI
File: TreeNode.js
JavaScript Copy Code |
---|
function TreeNode ([title]) |
String. The title of the new TreeNode.
The following code creates a new TreeNode called root and then adds several other TreeNode-s to it:
JavaScript Copy Code |
---|
// create a tree node that will be a root in our hierarchy var span = new ui.TreeNode("span"); var elements = [span, div, p]; |