Gets the collection of children items as a flat list.
Namespace: MindFusion.Common.UI
File: TreeNode.js
SyntaxJavaScript
Copy Code
|
|---|
get flatItems() {} |
ExampleThe 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