yesod-tableview-0.1.0: Table view for Yesod applications

Stabilityexperimental
MaintainerErtugrul Soeylemez <es@ertes.de>

Yesod.TableView.Widget

Description

Class for datatypes displayable in a table view as widgets.

Synopsis

Documentation

class TableViewWidget val whereSource

This class defines how types will be rendered in the table view.

Methods

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.