Last active
December 15, 2015 20:48
-
-
Save vadimdemedes/5320775 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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