DayPilot.Gantt.onTaskClick

Fired when the user clicks a task box, before the default TaskClick action (specified by taskClickHandling property).

The default action can be canceled by calling args.preventDefault().

Arguments

  • args.task - holds a DayPilot.Task object representing the task
  • args.preventDefault() - cancels the default action

Example

dp.onTaskClick = function(args) {
  alert("Clicked: " + args.task.id());
};