EngageSoftware/elm-engage-common/1.1.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

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

Get the date field view

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

Get the datepicker field view

fieldId : Namespace -> field -> 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 | field : field, localization : Localization } -> String

Localize a help String

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

Localize a label 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

validate : field -> String -> ValidationErrors field -> ValidationErrors field

Validate a field