Handle task name doubleclick vs task bar double click events

Hi,

We would like to perform different actions on task name double click in the grid, and the task bar double click on the Gantt.
Options explored:

  1. Handling it onTaskDblClick event:
    Get the target, and check for specific attribute which is unique to grid item/bar.
    We have seen gantt.config.task_attribute, but it is present in both the cases.
    Other than CSS classes is there any other attribute that can be used to distinguish whether the user clicked on grid row or on the bar inside the event?
  2. Have custom template for task name and emit the html anchor.

Any inputs if we want to go with the first option?

Thanks in Advance.

Hello,
examining the event target is an expected approach. You can either check the class name or the reference to the dom element itself,
check this demo: docs.dhtmlx.com/gantt/snippet/0c0bc7f1