Safe Haskell | None |
---|
- getCurrentPage :: Yesod m => HandlerT m IO Int
- paginationWidget :: Yesod m => PageWidgetConfig -> PageWidget m
- defaultWidget :: Yesod m => PageWidget m
- defaultPageWidgetConfig :: PageWidgetConfig
- type PageWidget m = Int -> Int -> Int -> WidgetT m IO ()
- data PageWidgetConfig = PageWidgetConfig {}
Documentation
getCurrentPage :: Yesod m => HandlerT m IO IntSource
looks up the "p" GET param and converts it to an Int. returns a default of 1 when conversion fails.
paginationWidget :: Yesod m => PageWidgetConfig -> PageWidget mSource
A widget showing pagination links. Follows bootstrap principles. Utilizes a "p" GET param but leaves all other GET params intact.
defaultWidget :: Yesod m => PageWidget mSource
defaultPageWidgetConfig :: PageWidgetConfigSource
Default widget config provided for easy overriding of only some fields.
type PageWidget m = Int -> Int -> Int -> WidgetT m IO ()Source
currentPage, itemsPerPage, totalItems -> widget
data PageWidgetConfig Source
PageWidgetConfig | |
|