Extra Elements in Gantt Task Line


#1

Hi,

I would like to know if it is possible to add extra elements as shown in the image (light blue colour elements) to both sides of a Task Line in DHTMLX Gantt.

image
image


#2

Hello,
You can use addTaskLayer method to display an additional layer with custom elements for a task in the timeline area:
https://docs.dhtmlx.com/gantt/api__gantt_addtasklayer.html ;
This method returns a DOM element that might be displayed in the required position near the task. You can use getTaskPosition method to get the position and size of the task’s DOM element in the timeline area:
https://docs.dhtmlx.com/gantt/api__gantt_gettaskposition.html ;
And apply your desired CSS rules to the specified DOM elements.
Please check the following example:
https://snippet.dhtmlx.com/cdckjqci