Search
TreeNode.level Property
See Also
 






Gets the depth of the TreeNode in the TreeView hierarchy.

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

 Syntax

JavaScript  Copy Code

get level() {}

 Property Value

Number. A zero-based index of the depth.

 Example

The following code checks the level of the first TreeNode in a TreeView:

JavaScript  Copy Code
if(treeView.items[0].level == 0)
{
    //do something
}

 See Also