class
DataSource

package haxe.ui.data

Known Subclasses:  ArrayDataSource, ListDataSource


static
fromString<T>(data:String, type:Class<DataSource<T>>):DataSource<T>


allowCallbacks:Bool
data:Any
read-only
isFiltered:Bool
read-only
size:Int
transformer:IItemTransformer<T>
onAdd:T->Void
onInsert:Int->T->Void
onRemove:T->Void
onUpdate:Int->T->Void


add(item:T):T
clear():Void
clearFilter():Void
clone():DataSource<T>
filter(fn::Int->T->Bool):Void
get(index:Int):T
indexOf(item:T):Int
insert(index:Int, item:T):T
onChange():Void
onClear():Void
onDataSourceChange():Void
remove(item:T):T
removeAt(index:Int):T
sort(field:String = null, direction:SortDirection = null):Void
sortCustom(fn::T->T->SortDirection->Int, direction:SortDirection = null):Void
update(index:Int, item:T):T