how change icon task ?

I view the type milestone has a different icon how do I put a different icon for normal task?

Hi,
you can put any kind of html inside a task element, please check these article and a demo:
docs.dhtmlx.com/gantt/desktop__ … _task.html
docs.dhtmlx.com/gantt/samples/0 … ntent.html
Is that what you was looking for?

1 Like

Hi Aliaksandr,

The examples you have shared, is to format the text within the activity bar, but the actually question is how to change the icon of the milestone(currently diamond shape) with different icon for certain milestones in my gantt view.

Hello,

You need to use “gantt.templates.task_class” to change default style for milestones. Please, see example:
docs.dhtmlx.com/gantt/snippet/1b366ec0

Thanks Polina, this is what i was looking for :sunglasses: