change
fires on changing the active page
change: (index: number, previousIndex: number) => void;
Parameters:
index: number
- the index of a newly active pagepreviousIndex: number
- the index of a previously active page
Example
pagination.events.on("change", function(index, previousIndex) {
// your logic here
});
Related sample: Pagination. Events