Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 676 Bytes

File metadata and controls

31 lines (19 loc) · 676 Bytes

Module Halogen.HTML.Events.Forms

Convenience functions for working with form events.

onValueChange

onValueChange :: forall f. (String -> EventHandler (f Unit)) -> Prop (f Unit)

Attaches an event handler which will produce an input when the value of an input field changes.

onValueInput

onValueInput :: forall f. (String -> EventHandler (f Unit)) -> Prop (f Unit)

Attaches an event handler which will fire on input.

onChecked

onChecked :: forall f. (Boolean -> EventHandler (f Unit)) -> Prop (f Unit)

Attaches an event handler which will fire when a checkbox is checked or unchecked.