bkuhlmann/form-validator/1.1.0

NOTE: this package is not compatible with Elm 0.19.1

FormValidator.Validator

The Form Validator validator which is main module used to manage forms and fields.

init : key -> Validators -> Field key

Initialize a new form field.

fieldValues : key -> Form key -> List String

Answer multiple field values.

fieldValue : key -> Form key -> String

Answer single field value.

fieldErrors : key -> Form key -> Errors

Answer all errors for a field.

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

Update multiple field values without validation.

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

Update single field value without validation.

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

Answer multiple field values and validate each.

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

Answer single field value and validate it.

validateForm : Form key -> Form key

Validate form (including all fields).

validateField : key -> Form key -> Form key

Validate field.

isFormInvalid : Form key -> Bool

Answer if form is invalid.

isFieldInvalid : key -> Form key -> Bool

Answer if field is invalid.