Stability | experimental |
---|---|
Maintainer | Ertugrul Soeylemez <es@ertes.de> |
Class for datatypes displayable in a table view as widgets.
- class TableViewWidget val where
- tableHeader :: val -> GWidget sub s ()
- tableRecord :: Int -> Key val -> val -> GWidget sub s ()
Documentation
class TableViewWidget val whereSource
This class defines how types will be rendered in the table view.
tableHeader :: val -> GWidget sub s ()Source
Table header (wrapped in a thead
element). This function
will be called once per table.
tableRecord :: Int -> Key val -> val -> GWidget sub s ()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.