{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} module Yesod.Paginator.Widgets ( PaginationWidget , simple , simpleWith , ellipsed , ellipsedWith -- * Exported for testing , setPageParameters ) where import Yesod.Paginator.Prelude import qualified Data.Text as T import Network.URI.Encode (encodeText) import Yesod.Core import Yesod.Paginator.Pages import Yesod.Paginator.Paginate type PaginationWidget site a = Pages a -> WidgetFor site () -- | Simple widget, limited to show the given number of total page elements -- -- Pseudo-HTML for @'simple' 5@, on page 1: -- -- @ -- \