Safe Haskell | None |
---|
- type Renderer = RenderOptions -> Html
- data Input
- = Input Html
- | MultiInput [Html]
- | SelfLabelInput Html
- data RenderOptions = RenderOptions {
- name :: Text
- widgetHtml :: Input
- errors :: [Html]
- options :: InputOptions
- renderOptions :: Maybe a -> Maybe Text -> Text -> Widget a -> [Html] -> InputOptions -> RenderOptions
Documentation
type Renderer = RenderOptions -> HtmlSource
The type of a final form-renderer
Representation of an input widget in HTML
data RenderOptions Source
InputOptions
that have been prepped for rendering
RenderOptions | |
|
:: Maybe a | The parsed value for this input (if available) |
-> Maybe Text | The unparsed value for this input (if available) |
-> Text | The name of this input |
-> Widget a | Widget to render with |
-> [Html] | Any error messages for this input |
-> InputOptions | |
-> RenderOptions |
Prep InputOptions
for rendering