Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created Sep 21, 2016
Embed
What would you like to do?
4.md
'#nextPage click': function(context, $el) {
context.event.preventDefault();
var currentPage = this._dataSearcher.getCurrentPage();
var totalPage = this._dataSearcher.getTotalPages();
if ((currentPage + 1) <= totalPage) {
this._dataSearcher.movePage(currentPage + 1);
this._updateCurrentPage();
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment