etaque/elm-form/2.1.0

NOTE: this package is not compatible with Elm 0.19.1

Form.Input

type alias Input e a =
FieldState e a -> List (Attribute Msg) -> Html Msg

An input renders Html from a field state and list of additional attributes. All input functions using this type alias are pre-wired with event handlers.

baseInput : String -> (String -> FieldValue) -> InputType -> Input e String

Untyped input, first param is type attribute.

textInput : Input e String

Text input.

passwordInput : Input e String

Password input.

textArea : Input e String

Textarea.

checkboxInput : Input e Bool

Checkbox input.

selectInput : List ( String, String ) -> Input e String

Select input.

radioInput : String -> Input e String

Radio input.

dumpErrors : Form e o -> Html msg

Dump all form errors in a <pre> tag. Useful for debugging.