EngageSoftware/elm-engage-common/5.0.0

NOTE: the latest version is 8.2.10

Engage.Form.Field

Form.Field

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

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

Get the date input field view

fieldId : Namespace -> String -> String

Get the fieldId

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

Get the input field view

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

Get the input field with attributes view

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

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

Get the phone field view

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

Get the radio field view

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

Validate a field