Change the workweek/weekend in JQuery Gantt widget
23 Jan 20181 minute to read
Non-working days/weekend are used to represent the non-productive days in a project. It is possible to change the non-working days in a week using the workWeek
property in Gantt.
By default, Saturdays and Sundays are considered as non-working days/weekend in a project.
The following code example explains how to change weekend/non-working days
$("#gantt").ejGantt({
// ...
workWeek: ["Sunday","Monday","Tuesday","Wednesday","Thursday"],
// ...
});
The above code example makes Fridays and Saturdays as non-working days in a week.
The above screen shot will be displayed after changing the non-working days in Gantt.
NOTE
In Gantt, we can make weekend as working day by setting
includeWeekend
property astrue
.