PerformanceIMMO/elm-utils/5.1.0

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.

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/SquirclesIO/elm-utils.

What we checked: The repo moved to github.com/SquirclesIO/elm-utils. Rebuilt with git archive from commit b420516550ab of https://github.com/SquirclesIO/elm-utils (zip prefix PerformanceIMMO-elm-utils-b420516/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 d04b3c7e0474ed78c165f3b848d9063faa3a5058.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/PerformanceIMMO/elm-utils/zipball/5.1.0/

Perfimmo.Form.FormField.FormDatalist

Entité représentant une datalist dans un formulaire marche avec la fonction datalistForm. La spécificité de la datalist c'est qu'elle retourne la valeur affichée alors qu'un select retourne l'identifiant associé à la valeur.

type FormDatalist a decoration

FormDatalist

type ValueState a
= ChosenItem a
| InputSearch String

indique le statut de la saisie :

  • ChosenItem -> j'ai cliqué sur une valeur de la liste déroulante
  • InputSearch -> je suis en train de tapé ma recherche pour trouver la bonne valeur
List String
-> List (FormFieldInfo decoration)
-> FromStringBuilder a
-> ToString a
-> FormDatalist a decoration

init

setValue : a -> FormDatalist a decoration -> FormDatalist a decoration

setValue

setValueFromS : String -> FormDatalist a decoration -> FormDatalist a decoration

setValueFromS

getValue : FormDatalist a decoration -> Maybe (ValueState a)

getValue

FormDatalist a decoration
-> ( Maybe (ValueState String), List String )

getSelectValues

getStringValue : FormDatalist a decoration -> Maybe String

getStringValue

FormFieldInfo decoration
-> FormDatalist a decoration
-> FormDatalist a decoration

addInfo

FormFieldInfo decoration
-> FormDatalist a decoration
-> FormDatalist a decoration

removeInfo

getInfos : FormDatalist a decoration -> List (FormFieldInfo decoration)

getInfos