mySelection.on( eventName ) in D3.js
Retrieve the event listener for an event type.
Arguments
name | type | description |
---|---|---|
eventName | String | Name of the event, e.g. ‘click’ or ‘mouseover’. |
- Return Type
- Selection
Description
For more details see https://github.com/mbostock/d3/wiki/Selections#wiki-on.
See Also
- Selection.on(eventName,eventHandler,capturePhase)