EngageSoftware/elm-engage-common/8.2.6

NOTE: the latest version is 8.2.10

Engage.Form.Field

Form.Field

Form fields with validation

Text

InputFieldArgs field msg {}
-> ValidationErrors field
-> State
-> String
-> Html msg

Get the text field view

InputFieldArgs field msg {}
-> ValidationErrors field
-> List (Attribute msg)
-> State
-> String
-> Html msg

Get the text field with attributes view

Password

InputFieldArgs field msg (PasswordFieldArgs field msg)
-> ValidationErrors field
-> State
-> String
-> Html msg

Get the password field view

InputFieldArgs field msg (PasswordFieldArgs field msg)
-> ValidationErrors field
-> List (Attribute msg)
-> State
-> String
-> Html msg

Get the password field with attributes view

Checkbox

CheckboxFieldArgs field msg
-> ValidationErrors field
-> State
-> Bool
-> Html msg

Get the checkbox view

CheckboxFieldArgs field msg
-> ValidationErrors field
-> List (Attribute msg)
-> State
-> Bool
-> Html msg

Get the checkbox with attributes view

Date

DateInputFieldArgs field msg
-> ValidationErrors field
-> State
-> Maybe Date
-> Html msg

Get the date input field view

Phone number

PhoneFieldArgs field msg
-> ValidationErrors field
-> PhoneState
-> PhoneNumber
-> Html msg

Get the phone field view

Radio list

RadioListFieldArgs field msg
-> ValidationErrors field
-> State
-> String
-> Html msg

Get the radio field view

Localization helpers

localizeHelp : { a | fieldKey : String, localization : Localization } -> String

Localize a help String

localizeLabel : { a | fieldKey : String, localization : Localization } -> String

Localize a label String

localizeInvalid : { a | fieldKey : String, localization : Localization } -> String

Localize a invalid String

withParentFieldKey : String -> String -> String

Get a field key with the parent field key

Validation helpers

field
-> String
-> String
-> ValidationErrors field
-> ValidationErrors field

Validate a field

fieldId : Namespace -> String -> String

Get the fieldId