krisajenkins/elm-exts/19.3.0

NOTE: this package is not compatible with Elm 0.19.1

Exts.Html.Events

Extensions to the Html.Events library.

onEnter : Message -> Attribute

Send a message when the user hits enter.

onCheckbox : Address a -> (Bool -> a) -> Attribute

Send a message whenever a checkbox is clicked. You supply a function which takes a Bool and returns an appropriate message.

onSelect : Address a -> (Maybe String -> a) -> Attribute

An event handler for <select> tags. Set the child <option> tag's value to "" to get a Nothing.

onInput : Address a -> (String -> a) -> Attribute

Similar to onChange, but it fires as soon as the value has changed, whereas onChange waits until the input loses focus.