Skip to content

Commit

Permalink
Merge branch 'master' of github.com:scrive/elm-form
Browse files Browse the repository at this point in the history
  • Loading branch information
kutyel committed Apr 16, 2024
2 parents 3e1e584 + cfd2fe4 commit 070384e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ HTML live form builders and validation for Elm.

For when the classical "a message per field" doesn't work well for you, at the price of losing some type safety (field names are made of strings, see [#97](https://github.com/etaque/elm-form/issues/97)).

## Support

We have a dedicated channel in [Elm slack](https://elmlang.herokuapp.com/), join us in `#elm-form` for any question, support or issues coordination.

## Features

- Validation API similar to `Json.Decode` with the standard `map`, `andThen`, etc: you either get the desired output value or all field errors
Expand All @@ -22,12 +18,10 @@ We have a dedicated channel in [Elm slack](https://elmlang.herokuapp.com/), join
- Unlimited fields, see `andMap` function (as in `Json.Extra`)
- Nested fields (`foo.bar.baz`) and lists (`todos.1.checked`) enabling rich form build

See [complete example here](http://etaque.github.io/elm-form/example/) ([source code](https://github.com/etaque/elm-form/tree/master/example)).

## Basic usage

See the [example validation test suite](https://github.com/etaque/elm-form/blob/master/tests/ValidationTests.elm)
and [test helper function docs](http://package.elm-lang.org/packages/etaque/elm-form/latest/Form-Test)
See the [example validation test suite](https://github.com/scrive/elm-form/blob/master/tests/ValidationTests.elm)
and [test helper function docs](http://package.elm-lang.org/packages/scrive/elm-form/latest/Form-Test)
for how to test-drive validations.

```elm
Expand Down Expand Up @@ -156,7 +150,7 @@ app =

- For event handling, see all field related messages in `Form.Msg` type.

Overall, having a look at current [helpers source code](https://github.com/etaque/elm-form/blob/master/src/Form/Input.elm) should give you a good idea of the thing.
Overall, having a look at current [helpers source code](https://github.com/scrive/elm-form/blob/master/src/Form/Input.elm) should give you a good idea of the thing.

### Incremental validation

Expand Down

0 comments on commit 070384e

Please sign in to comment.