The taskClickHandling property (string) specifies the default action performed by the JavaScript Gantt Chart when the user clicks a task box.
DayPilot.Gantt.taskClickHandling"Enabled" - task clicking is enabled, related events are fired, and no default action is performed.
"Disabled" - task clicking is disabled.
"PostBack" - fires the TaskClick event on the server side (ASP.NET WebForms).
"CallBack" - fires the TaskClick event on the server side (ASP.NET WebForms, ASP.NET MVC, Java only)
"Bubble" - opens a task bubble.
"ContextMenu" - opens a task context menu.
"Edit" - activates inline task editing.
"Select" - selects the task.
"Enabled"JavaScript
const gantt = new DayPilot.Gantt("dp", {
taskClickHandling: "ContextMenu",
// ...
});
gantt.init();Angular
<daypilot-gantt [config]="config"></daypilot-gantt>config: DayPilot.GanttConfig = {
taskClickHandling: "ContextMenu",
// ...
};React
<DayPilotGantt
taskClickHandling="ContextMenu"
{/* ... */}
/>Vue
<DayPilotGantt
taskClickHandling="ContextMenu"
<!-- ... -->
/>