Search
TreeView.toggleMode Property
See Also
 






Gets or sets a value indicating how TreeNode-s expand/collapse will be triggered.

Namespace: MindFusion.Common.UI
File: TreeView.js

 Syntax

JavaScript  Copy Code

get toggleMode() {}

 Property Value

One of the ToggleMode enumeration values.

 Example

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"));
treeView.width = treeView.height = ui.Unit.percentage(100);
treeView.theme = "standard";
treeView.loadOnDemand = true;
treeView.toggleMode = ui.ToggleMode.HeaderClick;

 See Also