PerformanceIMMO/elm-utils/5.3.1

NOTE: the latest version is 5.5.0

Renamed to SquirclesIO/elm-utils. It is published under that name, and new versions come out there.

Versions published as PerformanceIMMO/elm-utils still install under that name. 24 versions of 25 come from the new location (see their notes). 1 version could not be recovered and cannot be installed.

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/SquirclesIO/elm-utils exists but has no tag 5.3.1; Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 5.3.1 found (7 same-name repos checked); no cached copy. Use another version.

Details

Perfimmo.Form.FormField.Common

Common

type FormFieldInfo decoration
= FieldIsMandatory
| CustomDecorator decoration (SubComparator decoration)

Add info to your field that you will could use to decorate it after

type FormFieldInfo decoration =
    -- the field is mandatory
    FieldIsMandatory
    -- Allow to add custom decoration to field.
    | CustomDecorator decoration (SubComparator decoration)
formFieldComparable : FormFieldInfo decoration -> String

formFieldComparable

List (FormFieldInfo decoration)
-> List (FormFieldInfo decoration)

initFormFieldInfos

List (FormFieldInfo decoration)
-> FormFieldInfo decoration
-> List (FormFieldInfo decoration)

addFormFieldInfo

List (FormFieldInfo decoration)
-> FormFieldInfo decoration
-> List (FormFieldInfo decoration)

removeFormFieldInfo

type alias SubComparator a =
a -> String

a function that allow to compare decorator (cf. formFieldComparable) between them. Useful to {add, remove} FormFieldInfo decoration {to,from} field.