Stability | experimental |
---|---|
Maintainer | Ertugrul Soeylemez <es@ertes.de> |
Table-like view for tabular data.
- data TableView val = TableView {
- tableFilter :: [Filter val]
- tableId :: Maybe String
- tableOrder :: [Order val]
- tableRoute :: Int -> Int -> Route (TableSite val)
- tableShowHead :: Bool
- tableStyled :: Bool
- tableCurrentLimit :: Int
- tableCurrentOffset :: Int
- tableLimitPrompt :: String
- tableLimits :: [Int]
- tableMinLimit :: Maybe Int
- tableMaxLimit :: Maybe Int
- defTableView :: TableView val
- makeTableView :: [Filter val] -> [Order val] -> Int -> Int -> (Int -> Int -> Route (TableSite val)) -> TableView val
- tableView :: forall val. (PersistBackend (YesodDB (TableSite val) (GTableHandler val IO)), PersistEntity val, TableViewWidget val, YesodPersist (TableSite val)) => TableView val -> TableHandler val (TableWidget val ())
- module Yesod.TableView.Widget
Table view
Table view settings. Defaults are given in parentheses.
TableView | |
|
defTableView :: TableView valSource
Default values for most fields. The following fields will be left
undefined: tableRoute
, tableCurrentLimit
and
tableCurrentOffset
.
makeTableView :: [Filter val] -> [Order val] -> Int -> Int -> (Int -> Int -> Route (TableSite val)) -> TableView valSource
Simple smart constructor for common table view configurations.
tableView :: forall val. (PersistBackend (YesodDB (TableSite val) (GTableHandler val IO)), PersistEntity val, TableViewWidget val, YesodPersist (TableSite val)) => TableView val -> TableHandler val (TableWidget val ())Source
Generate a table view widget from the given configuration.
Reexports
module Yesod.TableView.Widget