| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
IHP.Pagination.Helpers
Synopsis
- getLastPage :: Pagination -> Int
- hasNextPage :: Pagination -> Bool
- hasPreviousPage :: Pagination -> Bool
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 #
hasPreviousPage :: Pagination -> Bool Source #