How to config work time for specific tasks?

I have use:
gantt.config.work_time = true;

But this global enable work_time for all tasks.
So how to config work time for specific tasks?
Some of my tasks are urgent so I don’t use holidays.

Thanks,
Chung Tran

Hello @chungtran4078,

The “working time” for specific tasks can be configured with the “calendar” functionality.
You can read about assigning calendar to a task by the following link:
https://docs.dhtmlx.com/gantt/desktop__working_time.html#assigningcalendartotask

Note: resource/project calendars are available only in PRO versions.

Here is a sample where you can watch this functionality in-work:
https://docs.dhtmlx.com/gantt/samples/09_worktime/06_task_calendars.html

1 Like

It work perfectly.
Thanks @Siarhei