| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Yesod.Colonnade
- table :: Foldable f => [(Text, Text)] -> Encoding Headed (Cell site) a -> f a -> WidgetT site IO ()
- listItems :: Foldable f => (WidgetT site IO () -> WidgetT site IO ()) -> (WidgetT site IO () -> WidgetT site IO () -> WidgetT site IO ()) -> Encoding Headed (Cell site) a -> f a -> WidgetT site IO ()
- data Cell site = Cell {}
- cell :: WidgetT site IO () -> Cell site
- stringCell :: String -> Cell site
- textCell :: Text -> Cell site
- builderCell :: Builder -> Cell site
Documentation
Arguments
| :: Foldable f | |
| => [(Text, Text)] | Attributes of |
| -> 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")] ...Arguments
| :: Foldable f | |
| => (WidgetT site IO () -> WidgetT site IO ()) | Wrapper for items, often |
| -> (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.
stringCell :: String -> Cell site Source #
builderCell :: Builder -> Cell site Source #