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

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.data = [];
Available since

1.0.0

.

Methods