Skip to content

Instantly share code, notes, and snippets.

@vadimdemedes
Last active December 15, 2015 20:48
Show Gist options
  • Save vadimdemedes/5320775 to your computer and use it in GitHub Desktop.
Save vadimdemedes/5320775 to your computer and use it in GitHub Desktop.
view.collection.on('load', function(){
// new data loaded
});
view.collection.on('page', function(){
// switched to another page
});
// Switching to the next page
view.collection.nextPage(function(){
// optional callback, load event will still get triggered
// switched to the next page
});
// Switching to the previous page
view.collection.prevPage(function(){
// optional callback, load event will still get triggered
// switched to the previous page
});
// Switching to a desired page
view.collection.page(5, function(){
// switched to the 5th page
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment