getPagesCount()
gets the total number of pages in the pagination
getPagesCount(): number;
Returns:
The total number of pages.
Example
const totalPages = pagination.getPagesCount();
// -> 10
Related sample: Pagination. Get page count
gets the total number of pages in the pagination
The total number of pages.
Example
const totalPages = pagination.getPagesCount();
// -> 10
Related sample: Pagination. Get page count