How to display Leaves?

Hello,
I want to display leaves for particular user. (Suppose, Admin take leave on 19, 27 to 28)
For leaves i created project named “Leaves” with it’s tasks as leaves (1st task with duration 19 to 19, 2nd task with duration 27 to 28)

Now, I don’t want to create project and tasks for leaves and want to display leaves how it’s possible?
I knew about addTaskLayer(docs.dhtmlx.com/gantt/api__gantt … layer.html)

How can i done with addTaskLayer?


Hello,

You can create array with start and end dates of leaves and display leaves according to these dates:
docs.dhtmlx.com/gantt/snippet/de5372df

Thanks :slight_smile: , Polina