BeforePageChange: Is called when a user scrolls to another page, but before the new items are loaded. Returning false will cancel the load; any return value other than false will allow the pagination to proceed as normal.
example:
function(scrollOffset, nextPageUrl) {
console.log("The user wants to go to the next page, but they can't!");
return false;
}
OnPageChange:Is called each time the user scrolls to an other page.
example:
function(pageNum, pageUrl, scrollOffset) {
console.log('Welcome on page ' + pageNum);
}
OnLoadItems:Is called each time new items are loaded.
example:
function(items) {
console.log('We loaded ' + items.length + ' items');
}
OnRenderComplete:Is called each time new items have been inserted in the DOM.
example:
function(items) {
console.log('We rendered ' + items.length + ' items');
}