This form is managed by Elm with only type Msg = OnFormChange String
. And happens to be triggered by form [ on "change" ... ]
.
Don't focus on characteristics of form change event; you can wire up NativeForm
to any different event handlers instead.
See more at Github or Package doc
Ok { mycheckbox = [Crochet], mycolor = { blue = 0, green = 0, red = 0 }, mydate = Posix 2146780800000, mydatetimelocal = Posix 2146837500000, mynumber = Nothing, myselect = VeryGood, myselectmulti = [], mytext = "hello world", myurl = { fragment = Nothing, host = "localhost", path = "/", port_ = Nothing, protocol = Http, query = Nothing } }
String | NativeForm.Value String |
---|---|
myselect | OneValue "Very good" |
mycheckbox | OneValue "Crochet" |
mytext | OneValue "hello world" |
mytextarea | OneValue "lorem\nipsum" |
myrange | OneValue "9" |
myurl | OneValue "http://localhost" |
mycolor | OneValue "#000000" |
mydate | OneValue "2038-01-11" |
mydatetime-local | OneValue "2038-01-11T15:45" |