Module

Flame.Html.Event

Package
purescript-flame
Repository
easafe/purescript-flame

Definition of HTML events that can be fired from views

#EventName Source

#ToEvent Source

type ToEvent message = message -> NodeData message

#ToRawEvent Source

type ToRawEvent message = (Event -> message) -> NodeData message

#ToMaybeEvent Source

type ToMaybeEvent message = (Event -> Maybe message) -> NodeData message

#ToSpecialEvent Source

type ToSpecialEvent message t = (t -> message) -> NodeData message

#createEvent Source

createEvent :: forall message. EventName -> message -> NodeData message

Raises the given message for the event

#createEventMessage Source

createEventMessage :: forall message. EventName -> (Event -> message) -> NodeData message

Helper for messages that expect an event

#createRawEvent Source

createRawEvent :: forall message. EventName -> (Event -> Effect (Maybe message)) -> NodeData message

Raises the given message for the given event, but also supplies the event itself

#onBlur Source

onBlur :: forall message. ToEvent message

#onBlur' Source

onBlur' :: forall message. ToRawEvent message

#onCheck Source

onCheck :: forall message. ToSpecialEvent message Boolean

Helper for input event of checkboxes and radios

#onClick Source

onClick :: forall message. ToEvent message

#onClick' Source

onClick' :: forall message. ToRawEvent message

#onChange Source

onChange :: forall message. ToEvent message

#onChange' Source

onChange' :: forall message. ToRawEvent message

#onContextmenu Source

onContextmenu :: forall message. ToEvent message

#onContextmenu' Source

onContextmenu' :: forall message. ToRawEvent message

#onDblclick Source

onDblclick :: forall message. ToEvent message

#onDblclick' Source

onDblclick' :: forall message. ToRawEvent message

#onDrag Source

onDrag :: forall message. ToEvent message

#onDrag' Source

onDrag' :: forall message. ToRawEvent message

#onDragend Source

onDragend :: forall message. ToEvent message

#onDragend' Source

onDragend' :: forall message. ToRawEvent message

#onDragenter Source

onDragenter :: forall message. ToEvent message

#onDragenter' Source

onDragenter' :: forall message. ToRawEvent message

#onDragleave Source

onDragleave :: forall message. ToEvent message

#onDragleave' Source

onDragleave' :: forall message. ToRawEvent message

#onDragover Source

onDragover :: forall message. ToEvent message

#onDragover' Source

onDragover' :: forall message. ToRawEvent message

#onDragstart Source

onDragstart :: forall message. ToEvent message

#onDragstart' Source

onDragstart' :: forall message. ToRawEvent message

#onDrop Source

onDrop :: forall message. ToEvent message

#onDrop' Source

onDrop' :: forall message. ToRawEvent message

#onError Source

onError :: forall message. ToEvent message

#onError' Source

onError' :: forall message. ToRawEvent message

#onFocus Source

onFocus :: forall message. ToEvent message

#onFocus' Source

onFocus' :: forall message. ToRawEvent message

#onFocusin Source

onFocusin :: forall message. ToEvent message

#onFocusin' Source

onFocusin' :: forall message. ToRawEvent message

#onFocusout Source

onFocusout :: forall message. ToEvent message

#onFocusout' Source

onFocusout' :: forall message. ToRawEvent message

#onInput Source

onInput :: forall message. ToSpecialEvent message String

This event fires when the value of an input, select, textarea, contenteditable or designMode on elements changes

#onInput' Source

onInput' :: forall message. ToRawEvent message

#onKeydown Source

onKeydown :: forall message. ToSpecialEvent message (Tuple Key String)

#onKeydown' Source

onKeydown' :: forall message. ToRawEvent message

#onKeypress Source

onKeypress :: forall message. ToSpecialEvent message (Tuple Key String)

#onKeypress' Source

onKeypress' :: forall message. ToRawEvent message

#onKeyup Source

onKeyup :: forall message. ToSpecialEvent message (Tuple Key String)

#onKeyup' Source

onKeyup' :: forall message. ToRawEvent message

#onMousedown Source

onMousedown :: forall message. ToEvent message

#onMousedown' Source

onMousedown' :: forall message. ToRawEvent message

#onMouseenter Source

onMouseenter :: forall message. ToEvent message

#onMouseenter' Source

onMouseenter' :: forall message. ToRawEvent message

#onMouseleave Source

onMouseleave :: forall message. ToEvent message

#onMouseleave' Source

onMouseleave' :: forall message. ToRawEvent message

#onMousemove Source

onMousemove :: forall message. ToEvent message

#onMousemove' Source

onMousemove' :: forall message. ToRawEvent message

#onMouseout Source

onMouseout :: forall message. ToEvent message

#onMouseout' Source

onMouseout' :: forall message. ToRawEvent message

#onMouseover Source

onMouseover :: forall message. ToEvent message

#onMouseover' Source

onMouseover' :: forall message. ToRawEvent message

#onMouseup Source

onMouseup :: forall message. ToEvent message

#onMouseup' Source

onMouseup' :: forall message. ToRawEvent message

#onReset Source

onReset :: forall message. ToEvent message

#onReset' Source

onReset' :: forall message. ToRawEvent message

#onScroll Source

onScroll :: forall message. ToEvent message

#onScroll' Source

onScroll' :: forall message. ToRawEvent message

#onSelect Source

onSelect :: forall message. ToSpecialEvent message String

#onSelect' Source

onSelect' :: forall message. ToRawEvent message

#onSubmit Source

onSubmit :: forall message. ToEvent message

#onSubmit' Source

onSubmit' :: forall message. ToRawEvent message

#onWheel Source

onWheel :: forall message. ToEvent message

#onWheel' Source

onWheel' :: forall message. ToRawEvent message