yesod-tableview-0.1.0: Table view for Yesod applications

Stabilityexperimental
MaintainerErtugrul Soeylemez <es@ertes.de>

Yesod.TableView

Contents

Description

Table-like view for tabular data.

Synopsis

Documentation

data TableView s val Source

Table view settings. Defaults are given in parentheses.

Constructors

TableView 

Fields

tableFilter :: [Filter val]

Table filter.

tableId :: String

HTML table id.

tableOrder :: [Order val]

Table sorting order.

tableRoute :: Int -> Int -> Route s

Table route.

tableShowHead :: Bool

Show table header?

tableStyled :: Bool

Add CSS styles?

tableCurrentLimit :: Int

Current pager limit.

tableCurrentOffset :: Int

Current offset.

tableLimitPrompt :: String

Prompt in limit form.

tableLimits :: [Int]

Selectable limits ([10, 20, 50, 100]).

tableMinLimit :: Maybe Int

Minimum pager limit (Just 10).

tableMaxLimit :: Maybe Int

Maximum pager limit (Just 100).

defTableView :: TableView s valSource

Default values for most fields. The following fields will be left undefined: tableId, tableRoute, tableCurrentLimit and tableCurrentOffset.

tableView :: forall s sub val. (PersistBackend (YesodDB s (GGHandler sub s IO)), PersistEntity val, TableViewWidget val, YesodPersist s) => TableView s val -> GHandler sub s (GWidget sub s ())Source

Reexports