Events

Events:

SVG Events:

Full scale DOM event types are supported along with some additional event behaviors like Drag, Zoom, etc.

Events

Usage

#.on(eventType, eventHndlr)

To bind event handlers on the graphical element. Accepts eventType and event handler as an argument. The handler receives the event object as an argument.

element.on('click',function(event){ // if no data bound, then only event object.
    this; // this refers to the element context.
});

Last updated