Specify a model attribute name (string) or function that will be used to sort the collection.
reads an additional page of data into this collection.
A fetch() must have been performed loading the initial set of data. This method is intended for infinite scrolling implementation.
When async processing is done, a more attribute is set on the options object in case additional data might be available which can be loaded by calling this method again. Likewise an end attribute is set if the data is fully loaded.
such as pageSize to retrieve.
promise of the load operation.
reads the next page of data into this collection.
A fetch() must have been performed loading the initial set of data. This method is intended for paging implementation.
When async processing is done, a next/prev attribute is set on the options object in case additional pages might be available which can be loaded by calling the corresponding method.
such as pageSize to retrieve.
promise of the load operation.
reads the previous page of data into this collection.
A fetch() must have been performed loading the initial set of data. This method is intended for paging implementation.
When async processing is done, a next/prev attribute is set on the options object in case additional pages might be available which can be loaded by calling the corresponding method.
such as pageSize to retrieve.
promise of the load operation.
Get a model from a collection, specified by an id, a cid, or by passing in a model.
save all containing models
Return a shallow copy of this collection's models, using the same options as native Array#slice.
Generated using TypeDoc
extension of a backbone.js Collection.
The Relution.livedata.Collection can be used like a Backbone Collection, but there are some enhancements to fetch, save and delete the contained models from or to other "data stores".
see WebSqlStore or SyncStore for examples