Safe Haskell | Safe-Infered |
---|
- getCurrentPage :: GHandler s m Int
- paginationWidget :: PageWidgetConfig -> PageWidget s m
- defaultWidget :: PageWidget s m
- type PageWidget s m = Int -> Int -> Int -> GWidget s m ()
- data PageWidgetConfig = PageWidgetConfig {}
Documentation
getCurrentPage :: GHandler s m IntSource
looks up the "p" GET param and converts it to an Int. returns a default of 1 when conversion fails.
paginationWidget :: PageWidgetConfig -> PageWidget s mSource
A widget showing pagination links. Follows bootstrap principles. Utilizes a "p" GET param but leaves all other GET params intact.
defaultWidget :: PageWidget s mSource
data PageWidgetConfig Source