yesod-tableview-0.2.1: Table view for Yesod applications

Stabilityexperimental
MaintainerErtugrul Soeylemez <es@ertes.de>

Yesod.TableView.Widget

Contents

Description

Class for datatypes displayable in a table view as widgets.

Synopsis

Table view widgets.

class TableViewWidget val whereSource

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

Associated Types

type TableSite val Source

Site associated with this table view widget.

type TableSubsite val Source

Subsite associated with this table view widget.

Methods

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