Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data MouseEvent = MouseEvent {}
- toMouseEvent :: Notice -> Maybe MouseEvent
Documentation
data MouseEvent Source #
Mouse and Drag/Drop events
MouseEvent
must only be used in the first part of handleEvent
.
https://facebook.github.io/react/docs/events.html#mouse-events
https://developer.mozilla.org/en-US/docs/Web/Events
Event names (eventType)
onClick (click) onContextMenu (contextmenu) onDoubleClick (dblclick)
onDrag (drag) onDragEnd (dragend) onDragEnter (dragenter) onDragExit (dragexit)
onDragLeave (dragleave) onDragOver (dragover) onDragStart (dragstart)
onDrop (drop) onMouseDown (mousedown) onMouseEnter (mouseenter) onMouseLeave (mouseleave)
onMouseMove (mousemove) onMouseOut (mouseout) onMouseOver (mouseover) onMouseUp (mouseup)
Instances
toMouseEvent :: Notice -> Maybe MouseEvent Source #
We can lie about this not being in IO because
within the strict part of handleEventM
the Notice is effectively immutable.