backbone.swipeview
v0.1.1
Published
Generic Backbone SwipeView integration.
Downloads
4
Readme
backbone.swipeview
Backbone view wrapping (a fork of) Spinelli's SwipeView, allowing for easily rendering collections using a manually definable subview.
Example
Usage is as follows:
var SlideList = SwipeView.extend({
subview: SlideDetail,
swipeview_options: {
loop: true
}
});
var slide_list = new SlideList({
el: '#wrapper',
collection: slides,
swipeview_options: {
loop: true
}
});
slide_list.render();
Running the example
A full usage example is supplied in the repository and can be started by running (after cloning):
$ npm install
$ grunt
The example requires grunt
and npm
to be installed globally. If not
available they may be installed (or upgraded) by running:
npm install -g npm
npm install -g grunt