Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- render :: Pretty v => RenderConfig -> KVITable v -> Text
- data RenderConfig = RenderConfig {
- hideBlankRows :: Bool
- hideBlankCols :: Bool
- equisizedCols :: Bool
- sortKeyVals :: Bool
- colStackAt :: Maybe Key
- rowRepeat :: Bool
- rowGroup :: [Key]
- caption :: Maybe Text
- defaultRenderConfig :: RenderConfig
Documentation
render :: Pretty v => RenderConfig -> KVITable v -> Text Source #
Renders the specified table in HTML format, using the specified
RenderConfig
controls. The output is only the table
definition; it is intended to be embedded in a larger HTML
document.
data RenderConfig Source #
The RenderConfig
specifies the various controls and
configurations used when rendering a KVITable
in various formats.
The RenderConfig
is global t oall formats, although some of the
fields in the RenderConfig
will be ignored as not-applicable by
some formats.
RenderConfig | |
|
defaultRenderConfig :: RenderConfig Source #
Returns the default rendering configuration, to be used with a
format-specific render
call.