Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created September 21, 2016 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/691eea6e11058249ae8c5cea6bae11a1 to your computer and use it in GitHub Desktop.
Save goofmint/691eea6e11058249ae8c5cea6bae11a1 to your computer and use it in GitHub Desktop.
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