DHTMLX Docs & Samples Explorer

onTaskClick

onTaskClick event is fired when user clicks on a Task item.

One parameter is passed to the handler:

  • task - GanttTask object which is clicked.
    ganttChartControl.attachEvent("onTaskClick", function(task){
        alert("Task with Id = " + task.getId() + " is clicked.");
    });