If enabled using the taskClickHandling property, clicking a task box in the Gantt Chart component triggers the onTaskClick and onTaskClicked handlers.

You can use these events to open a dialog for task editing, add the task to the selection, or perform any other custom action.

Example

Gantt Chart config:

{
  taskClickHandling: "Enabled",
  onTaskClick: args => {
    console.log("Row clicked", args.task);
  },
  // ...
}