The onTaskDoubleClicked event handler fires when the user double-clicks a task box in the Gantt Chart, after the default action specified by taskDoubleClickHandling.
DayPilot.Gantt.onTaskDoubleClicked(args)args.task - DayPilot.Task object representing the task.
JavaScript
const gantt = new DayPilot.Gantt("dp", {
taskDoubleClickHandling: "Enabled",
onTaskDoubleClicked: (args) => {
DayPilot.Modal.alert("Double-clicked: " + args.task.id());
},
// ...
});
gantt.init();Angular
<daypilot-gantt [config]="config"></daypilot-gantt>config: DayPilot.GanttConfig = {
taskDoubleClickHandling: "Enabled",
onTaskDoubleClicked: args => {
DayPilot.Modal.alert("Double-clicked: " + args.task.id());
},
// ...
};React
<DayPilotGantt
taskDoubleClickHandling="Enabled"
onTaskDoubleClicked={onTaskDoubleClicked}
{/* ... */}
/>const onTaskDoubleClicked = (args) => {
DayPilot.Modal.alert("Double-clicked: " + args.task.id());
};Vue
<DayPilotGantt
taskDoubleClickHandling="Enabled"
@taskDoubleClicked="onTaskDoubleClicked"
<!-- ... -->
/>const onTaskDoubleClicked = (args) => {
DayPilot.Modal.alert("Double-clicked: " + args.task.id());
};