IListCollectionDataDescriptor
public interface
feathers.data.IListCollectionDataDescriptor
Description
An adapter interface to support any kind of data source in
ListCollection
.
See also:
feathers.data.ListCollection
API overview
Constructor
IListCollectionDataDescriptor
()
Functions
Public functions
addItemAt ( data: Object , item: Object , index: Number ): Void |
Adds an item to the data source, at the specified index |
getItemAt ( data: Object , index: Number ): Object |
Returns the item at the specified index in the data source |
getItemIndex ( data: Object , item: Object ): Number |
Determines which index the item appears at within the data source |
getLength ( data: Object ): Number |
The number of items in the data source |
removeAll ( data: Object ): Void |
Removes all items from the data source |
removeItemAt ( data: Object , index: Number ): Object |
Removes the item at the specified index from the data source and returns it |
setItemAt ( data: Object , item: Object , index: Number ): Void |
Replaces the item at the specified index with a new item |
Constructor
IListCollectionDataDescriptor ()
Functions
addItemAt ( data: Object , item: Object , index: Number ): Void
Adds an item to the data source, at the specified index.
Parameters
data: Object | |
item: Object | |
index: Number |
getItemAt ( data: Object , index: Number ): Object
Returns the item at the specified index in the data source.
Parameters
data: Object | |
index: Number |
getItemIndex ( data: Object , item: Object ): Number
Determines which index the item appears at within the data source. If
the item isn't in the data source, returns -1
.
Parameters
data: Object | |
item: Object |