https://github.com/codeyellowbv/backbone-virtualcollection-split
Automatically split a Backbone collection into multiple Virtual Collections based on a key.
https://github.com/codeyellowbv/backbone-virtualcollection-split
Last synced: 20 days ago
JSON representation
Automatically split a Backbone collection into multiple Virtual Collections based on a key.
- Host: GitHub
- URL: https://github.com/codeyellowbv/backbone-virtualcollection-split
- Owner: CodeYellowBV
- Created: 2015-07-14T16:26:57.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-16T14:28:20.000Z (almost 11 years ago)
- Last Synced: 2025-03-06T01:45:44.236Z (over 1 year ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 0
- Watchers: 15
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# backbone-virtualcollection-split
Automatically split a Backbone collection into multiple Virtual Collections based on a key.
## Usage
```js
var SplitCollection = require('backbone-virtualcollection-split');
var collection = new Backbone.Collection([{
date: '2015-07-10',
name: 'zaico'
}, {
date: '2015-07-10',
name: 'japser'
}, {
date: '2015-07-07',
name: 'henk'
}, {
date: '2015-07-07',
name: 'de vries'
}]);
var foo = new SplitCollection(collection, '');
```