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 3.0.0
license BSD3
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 3.0.0
Committed At 2018-06-29 14:42:25 UTC
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
elm-community/elm-datepicker 7.0.0 <= v < 8.0.0 7.2.6

Modules

README

Agnostic library for building Forms

Provides a set of configuration options for building forms components. Here's a list of available components:

  • Input text
  • Textarea
  • Select
  • Radio
  • Checkbox
  • Datepicker
  • Autocomplete

Configuring fields

You can only reconstruct the original (opaque) type:

type FormField model msg = FormField (FormFieldConfig model msg)

By using one of this configuration methods:

  • autocompleteConfig
  • checkboxConfig
  • datepickerConfig
  • radioConfig
  • selectConfig
  • textConfig

Once configured, a field must be rendered by calling the render method.

Use example

See examples/FormApp.elm

Running example

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