DHTMLX Docs & Samples Explorer

attachEvent (evName, evHandler)

Required library edition: This method works with any edition of DHTMLX library

Required library file: dhtmlxchart.js

adds any user-defined handler to available events

  • evName - event name;
  • evHandler - user-defined event handler.
              chart.attachEvent(evName, evHandler);

Several handlers can be attached to the same event, and all of them will be executed.

 
event names are case-insensitive.