The onTaskDoubleClicked event handler fires when the user double-clicks a task box in the Gantt Chart, after the default action specified by taskDoubleClickHandling.
Declaration
DayPilot.Gantt.onTaskDoubleClicked(args)Parameters
args.task- DayPilot.Task object representing the task.
Examples
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());
};See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot