Adding pictures in tasks


#1

Is there a way to design tasks and add images to it?


#2

Hello Raghees,
You can return any HTML elements in the task bars. To do that, you need to use the task_text template:
https://docs.dhtmlx.com/gantt/api__gantt_task_text_template.html
Or you can specify the class name in the task_class template and add images via CSS:
https://docs.dhtmlx.com/gantt/api__gantt_task_class_template.html

Here are examples of how it can be implemented:
http://snippet.dhtmlx.com/5/bf27a670b
https://snippet.dhtmlx.com/5/015ca72ed