This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
Form library in Elm
version 24.1.5
license BSD3
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 24.1.5
Committed At 2018-11-23 14:51:51 UTC
rluiten/elm-date-extra 9.3.1 <= v < 10.0.0 9.4.0
mgold/elm-date-format 1.6.0 <= v < 2.0.0 1.8.0
elm-lang/html 2.0.0 <= v < 3.0.0 2.0.0
elm-lang/core 5.0.0 <= v < 6.0.0 5.1.1

README

Agnostic library for building Forms

Provides a set of configuration options for building forms components.

Configuring fields

You can only reconstruct the original (opaque) type:

type FormField model msg = FormField (FormFieldConfig model msg)

By using one of these configuration methods:

textConfig, passwordConfig, textareaConfig, checkboxConfig, checkboxWithOptionsConfig, selectConfig, radioConfig, autocompleteConfig, datepickerConfig, pureHtmlConfig

Once configured, a field must be rendered by calling one of these methods:

render, renderWithGroup, wrapper

You can always check the status of a field by using:

isValid, isPristine

Use example

See examples/App.elm

Running example

  • Run elm-reactor
  • Open http://localhost:8000
  • Navigate to http://localhost:8000/examples/App.elm