pull-dom-events
Simple pull-stream for DOM events
Install
npm install --save pull-dom-events
Usage
const pull = const pullEvent click = const log filter = pull // or shorthand method
pullEvent(eventType, element, capture?)
pullEvent
takes a eventType
such click, mouseover, keydown, etc
an element such as document
and an optional capture
boolean.
eventType(element, capture?)
eventType
takes a element to bind to and an option capture
boolean
Currently supporting the following event-types:
click, dblclick, mousedown, mouseup, mousemove, mouseover, mouseenter, mouseout, mouseleave, keydown, keypress, keyup, load, unload
const source =
Todo
- more tests
- more shorthand event types