Stability | experimental |
---|---|
Maintainer | Ertugrul Soeylemez <es@ertes.de> |
Class for datatypes displayable in a table view as widgets.
- class TableViewWidget val where
- type TableSite val
- type TableSubsite val
- tableHeader :: val -> TableWidget val ()
- tableRecord :: Int -> Key val -> val -> TableWidget val ()
- type GTableHandler val = GGHandler (TableSubsite val) (TableSite val)
- type GTableWidget val = GGWidget (TableSubsite val) (TableSite val)
- type TableHandler val = GHandler (TableSubsite val) (TableSite val)
- type TableWidget val = GWidget (TableSubsite val) (TableSite val)
Table view widgets.
class TableViewWidget val whereSource
This class defines how types will be rendered in the table view.
Site associated with this table view widget.
type TableSubsite val Source
Subsite associated with this table view widget.
tableHeader :: val -> TableWidget val ()Source
Table header (wrapped in a thead
element). This function
will be called once per table.
tableRecord :: Int -> Key val -> val -> TableWidget val ()Source
Table row. This function will be called once for each entry in
the table. All rows will be rendered inside of a tbody
element.
Convenient type aliases
type GTableHandler val = GGHandler (TableSubsite val) (TableSite val)Source
type GTableWidget val = GGWidget (TableSubsite val) (TableSite val)Source
type TableHandler val = GHandler (TableSubsite val) (TableSite val)Source
type TableWidget val = GWidget (TableSubsite val) (TableSite val)Source