simple-form-0.1.1: Forms that configure themselves based on type

Safe HaskellNone

SimpleForm.Render

Synopsis

Documentation

type Renderer = RenderOptions -> HtmlSource

The type of a final form-renderer

data Input Source

Representation of an input widget in HTML

Instances

data RenderOptions Source

InputOptions that have been prepped for rendering

Constructors

RenderOptions 

Fields

name :: Text
 
widgetHtml :: Input
 
errors :: [Html]
 
options :: InputOptions
 

renderOptionsSource

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