Custom Unique Link for each Task Bar

I want to set custom click event on each task bar. Just like normal hyperlink.
The only thing I’ve found in the documentation is onTaskClick or onDblClick. But those function will applied automaticly to all task.
How can I do custom click link on each task bar?
Is there any way to put link when defining the gantt chart data? ({“id”:1, “link”:“www.aaaa.com”})
Thanks for help :slight_smile:

Hello Giovandy,
I think the easiest way for that would be to add the link to the task bar near or instead of the main text. You can specify that in the task_text template:
https://docs.dhtmlx.com/gantt/api__gantt_task_text_template.html
And you can add a task property that will contain the link.
Here is an example of how it might be implemented:
http://snippet.dhtmlx.com/e92f353b2