DayPilot.Gantt.contextMenuTask

DayPilot Menu object used for task box context menu.  

Declaration

DayPilot.Gantt.contextMenuTask (DayPilot.Menu class)

Default Value

null

Example

dp.contextMenuTask = new DayPilot.Menu({items: [
  {text:"Show task ID", onclick: function() { alert("Task ID: " + this.source.id()); } },
  {text:"Delete task", onclick: function() { dp.tasks.remove(this.source);} }
]});