Skip to main content

getPagesCount()

gets the total number of pages in the pagination

getPagesCount(): number;

Returns:

The total number of pages.

Example

const totalPages = pagination.getPagesCount();// -> 10