DayPilot.Gantt.onTaskDoubleClick

Fired when the user double-clicks a task box, before the default TaskDoubleClick action (specified by taskDoubleClickHandling 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.onTaskDoubleClick = function(args) {
  alert("Double-clicked: " + args.task.id());
};