Add delay to task

Hi there, I need to add a delay to the task, so far I am doing this using task_text. But I am not able to distinguish whether I am clicking on task or delay. I have to show different tooltip when clicking on delay as shown below:

Do you have any idea how to achive that?

Hello Marta,
That depends on how you implemented that. If you return custom HTML elements in the task_text template, you can assign a specific class name for the delay element. Then you can use the tooltipFor method to attach different text depending on the selectors:
https://docs.dhtmlx.com/gantt/desktop__tooltips.html#tooltipsfordifferentelements
Here is an example:
https://snippet.dhtmlx.com/fbuguv3e

If that doesn’t help you, it is hard to suggest anything as I don’t see your code. In that case, please add your configuration to the following snippet and make sure that the issue is reproduced there:
https://snippet.dhtmlx.com/40tsh9uz
Then, click on the Save button and send me the link.
Or send me a ready demo with all the necessary JavaScript and CSS files so that I can reproduce the issue locally.