yesod-colonnade-0.1: Helper functions for using yesod with colonnade

Safe HaskellNone
LanguageHaskell2010

Yesod.Colonnade

Synopsis

Documentation

table Source #

Arguments

:: Foldable f 
=> [(Text, Text)]

Attributes of table element

-> Encoding Headed (Cell site) a

How to encode data as a row

-> f a

Rows of data

-> WidgetT site IO () 

If you are using the bootstrap css framework, then you may want to call this with the first argument as:

table [("class","table table-striped")] ...

listItems Source #

Arguments

:: Foldable f 
=> (WidgetT site IO () -> WidgetT site IO ())

Wrapper for items, often ul

-> (WidgetT site IO () -> WidgetT site IO () -> WidgetT site IO ())

Combines header with data

-> Encoding Headed (Cell site) a

How to encode data as a row

-> f a

Rows of data

-> WidgetT site IO () 

This determines the attributes that are added to the individual lis by concatenating the header's attributes with the data's attributes.

data Cell site Source #

Constructors

Cell 

Fields

Instances

IsString (Cell site) Source # 

Methods

fromString :: String -> Cell site #

cell :: WidgetT site IO () -> Cell site Source #