Search
TreeNode.flatItems Property
See Also
 






Gets the collection of children items as a flat list.

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

 Syntax

JavaScript  Copy Code

get flatItems() {}

 Property Value

An instance of the List class. The list of items.

 Example

The following code uses the flatItems property to search for an item in the collection of items in a TreeView:

JavaScript  Copy Code
var treeNode = treeView.flatItems.where(function (item) { if (item.data == d) return true; }).first();

 See Also