https://github.com/primait/forms
Elm forms [0.19]
https://github.com/primait/forms
Last synced: 17 days ago
JSON representation
Elm forms [0.19]
- Host: GitHub
- URL: https://github.com/primait/forms
- Owner: primait
- License: mit
- Created: 2019-03-12T08:48:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-19T21:24:30.000Z (over 5 years ago)
- Last Synced: 2025-10-20T15:37:02.897Z (9 months ago)
- Language: Elm
- Homepage:
- Size: 118 KB
- Stars: 0
- Watchers: 9
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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`