IHP Api Reference
Safe HaskellSafe-Inferred

IHP.Pagination.Helpers

Synopsis

Documentation

getLastPage :: Pagination -> Int Source #

Gets the number of the last page from a Pagination state. Uses the total number of items and the page size to calculate the final page.

hasNextPage :: Pagination -> Bool Source #

Returns True if there is a next page in the pagination, False otherwise.

hasPreviousPage :: Pagination -> Bool Source #

Returns True if there is a previous page in the pagination, False otherwise.