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