DHTMLX Docs & Samples Explorer

Event Handling

Available Events

The following events are available in dhtmlxGantt:

Attaching Event Handler

The user can add any user-defined handler to available events. To do this he can use attachEvent() method with the following parameters:

  • evName - name of the event;
  • evHandler - user-defined event handler.
    ganttChart.attachEvent(evName, evHandler);

Note: the names of the events are case-insensitive.