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.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