Additional decoders for use with event handlers in html.
TODO: key
TODO: code
TODO: KeyEvent, keyEvent
Floating-point target value.
Integer target value.
String or empty target value.
Floating-point or empty target value.
Integer or empty target value.
Parse a floating-point value from the input instead of using valueAsNumber.
Use this with inputs that do not have a number type.
Parse an integer value from the input instead of using valueAsNumber.
Use this with inputs that do not have a number type.
Parse an optional floating-point value from the input instead of using valueAsNumber.
Use this with inputs that do not have a number type.
Parse an optional integer value from the input instead of using valueAsNumber.
Use this with inputs that do not have a number type.
Parse the index of the selected option of a select. Returns Nothing in place of the spec's magic value -1.
Parse event.target.selectedOptions and return option values.
Always send msg upon click, preventing the browser's default behavior.
Always send msg upon click, preventing click propagation.
Always send msg upon click, preventing the browser's default behavior and propagation
When the enter key is released, send the msg.
Otherwise, do nothing.
An HTML Event attribute that passes the event.target.value to a msg
constructor when an input, select, or textarea element has changed.
Detect change events on multi-choice select elements.
It will grab the string values of event.target.selectedOptions on any change
event.
Check out targetSelectedOptions for more details on
how this works.
Note: onChange parses event.target.value that doesn't work with
multi-choice select elements.
Note 2:
selectedOptions
is not supported by Internet Explorer.
Character code for key board events. This is being deprecated, but support for DOM3 Keyboard events is not yet present in most browsers.