Search
TreeView.flatItems Property
See Also
 






Gets the collection of items as a flat list.

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

 Syntax

JavaScript  Copy Code

get flatItems() {}

 Property Value

A List instance with the items.

 Example

The following code uses the loadedItems property of the TreeView class to search for an item that is called span:

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

 See Also