Skip to main content

change

fires on changing the active page

change: (index: number, previousIndex: number) => void;

Parameters:

  • index: number - the index of a newly active page
  • previousIndex: number - the index of a previously active page

Example

pagination.events.on("Change", function(index, previousIndex) {  // your logic here});