View source
class ArrayCollection<T>
package feathers.data
extends EventDispatcher
implements IFlatCollection<T>
Wraps an Array
in the common IFlatCollection
API used for data
collections by many Feathers UI controls, including ListView
and TabBar
Available since
1.0.0
.Constructor
new(?array:Array<T>)
Creates a new ArrayCollection
object with the given arguments.
Available since
1.0.0
.Variables
array:Array<T> = null
The Array
data source for this collection.
The following example replaces the data source with a new array:
collection.data = [];
Available since
1.0.0
.