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

Safe HaskellNone
LanguageHaskell98

SimpleForm.Render

Description

These utilities are for writing Renderers

Synopsis

Documentation

type Renderer = RenderOptions -> Html Source

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 

renderOptions Source

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