bkuhlmann/form-validator/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

FormValidator

A customizable form validation component.

Models

type alias Form key =
Form key

Models module wrapper. See Models module for details.

Init

init : key -> Validators -> Field key

Validator module wrapper. See Validator module for details.

Accessors

fieldValues : key -> Form key -> List String

Validator module wrapper. See Validator module for details.

fieldValue : key -> Form key -> String

Validator module wrapper. See Validator module for details.

fieldErrors : key -> Form key -> Errors

Validator module wrapper. See Validator module for details.

Updaters

updateValues : key -> Values -> Form key -> Form key

Validator module wrapper. See Validator module for details.

updateValue : key -> Value -> Form key -> Form key

Validator module wrapper. See Validator module for details.

updateAndValidateValues : key -> Values -> Form key -> Form key

Validator module wrapper. See Validator module for details.

updateAndValidateValue : key -> Value -> Form key -> Form key

Validator module wrapper. See Validator module for details.

Validators

validateForm : Form key -> Form key

Validator module wrapper. See Validator module for details.

validateField : key -> Form key -> Form key

Validator module wrapper. See Validator module for details.

isFormInvalid : Form key -> Bool

Validator module wrapper. See Validator module for details.

isFieldInvalid : key -> Form key -> Bool

Validator module wrapper. See Validator module for details.

isBlank : Value -> Error

Validators module wrapper. See Validators module for details.

isEmpty : Value -> Error

Validators module wrapper. See Validators module for details.

isInteger : Value -> Error

Validators module wrapper. See Validators module for details.

isFloat : Value -> Error

Validators module wrapper. See Validators module for details.

isIncluded : List String -> Value -> Error

Validators module wrapper. See Validators module for details.

isExcluded : List String -> Value -> Error

Validators module wrapper. See Validators module for details.

isGreaterThan : Int -> Value -> Error

Validators module wrapper. See Validators module for details.

isLessThan : Int -> Value -> Error

Validators module wrapper. See Validators module for details.

isBetween : Int -> Int -> Value -> Error

Validators module wrapper. See Validators module for details.

isLengthGreaterThanEqualTo : Int -> Value -> Error

Validators module wrapper. See Validators module for details.

isLengthLessThanEqualTo : Int -> Value -> Error

Validators module wrapper. See Validators module for details.

isEmail : Value -> Error

Validators module wrapper. See Validators module for details.

Views

viewField : key -> Form key -> List String -> List (Html message) -> Html message

Views module wrapper. See Views module for details.

viewErrors : Errors -> Html message

Views module wrapper. See Views module for details.

viewError : Error -> Html message

Views module wrapper. See Views module for details.