how change icon task ?

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

you can put any kind of html inside a task element, please check these article and a demo: … _task.html … 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.


You need to use “gantt.templates.task_class” to change default style for milestones. Please, see example:

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