| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
SimpleForm.Render
Description
These utilities are for writing Renderers
- 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 -> Html Source
The type of a final form-renderer
Representation of an input widget in HTML
Constructors
| Input Html | |
| MultiInput [Html] | |
| SelfLabelInput Html |
data RenderOptions Source
InputOptions that have been prepped for rendering
Constructors
| RenderOptions | |
Fields
| |
Arguments
| :: 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