Gets or sets the TreeNode instance that can be dropped.
Namespace: MindFusion.Common.UI
File: TreeView.js
The following code creates a new TreeView element using a <div> element with id "treeview" initialized in an HTML page. Then it sets its acceptDrop property:
JavaScript Copy Code |
---|
var treeView = new ui.TreeView(document.getElementById("treeView")); // create a tree node that will be a root in our hierarchy treeView.items.add(root); |