DayPilot.Gantt.onRowDoubleClicked

The onRowDoubleClicked event handler fires when the user double-clicks a task row header in the JavaScript Gantt Chart component, after the default action specified by rowDoubleClickHandling.

Declaration

DayPilot.Gantt.onRowDoubleClicked(args)

Parameters

  • args.task - DayPilot.Task object representing the task.

  • args.x (number) - column index.

Examples

JavaScript

const gantt = new DayPilot.Gantt("dp", {
  rowDoubleClickHandling: "Enabled",
  onRowDoubleClicked: args => {
    DayPilot.Modal.alert("Clicked: " + args.task.id());
  },
  // ...
});
gantt.init();

Angular

<daypilot-gantt [config]="config"></daypilot-gantt>
config: DayPilot.GanttConfig = {
  rowDoubleClickHandling: "Enabled",
  onRowDoubleClicked: args => {
    DayPilot.Modal.alert("Clicked: " + args.task.id());
  },
  // ...
};

React

<DayPilotGantt
  rowDoubleClickHandling="Enabled"
  onRowDoubleClicked={onRowDoubleClicked}
  {/* ... */}
/>
const onRowDoubleClicked = (args) => {
  DayPilot.Modal.alert("Clicked: " + args.task.id());
};

Vue

<DayPilotGantt
  rowDoubleClickHandling="Enabled"
  @rowDoubleClicked="onRowDoubleClicked"
  <!-- ... -->
/>
const onRowDoubleClicked = (args) => {
  DayPilot.Modal.alert("Clicked: " + args.task.id());
};

See Also

DayPilot.Gantt Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript