DayPilot.Gantt.onTaskRightClicked

Fired when the user right-clicks a task box, after the default TaskRightClick action (specified by taskRightClickHandling 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.onTaskRightClicked = function(args) {
  alert("Clicked: " + args.task.id());
};