Wraps an Array data source with a common API for use with UI controls that support hierarchical data, such as TreeView.

Events:

openfl.events.Event.CHANGE
feathers.events.HierarchicalCollectionEvent.ADD_ITEM
feathers.events.HierarchicalCollectionEvent.REMOVE_ITEM
feathers.events.HierarchicalCollectionEvent.REPLACE_ITEM
feathers.events.HierarchicalCollectionEvent.REMOVE_ALL
feathers.events.HierarchicalCollectionEvent.RESET
feathers.events.HierarchicalCollectionEvent.UPDATE_ITEM
feathers.events.HierarchicalCollectionEvent.UPDATE_ALL
feathers.events.HierarchicalCollectionEvent.FILTER_CHANGE
feathers.events.HierarchicalCollectionEvent.SORT_CHANGE
Available since

1.0.0

.

See also:

Constructor

new(?array:Array<TreeNode<T>>)

Creates a new TreeCollection object with the given arguments.

Available since

1.0.0

.

Variables

@:flash.propertyarray:Array<TreeNode<T>>

The Array<TreeNode> data source for this collection.

The following example replaces the data source with a new array:

collection.array = [];
Available since

1.0.0

.

Methods