Gets or sets a value indicating whether TreeNode-s DOM will be created only after their parent node is expanded.
Namespace: MindFusion.Common.UI
File: TreeView.js
JavaScript Copy Code |
---|
get loadOnDemand() {} |
Boolean. true if items are loaded on demand, otherwise false.
The following code creates a new TreeView element using a <div> element with id "treeview" initialized in an HTML page. Then it sets its loadOnDemand property.
JavaScript Copy Code |
---|
var treeView = new ui.TreeView(document.getElementById("treeView")); treeView.width = treeView.height = ui.Unit.percentage(100); treeView.theme = "standard"; treeView.loadOnDemand = true; |