Change the workweek/weekend in JQuery Gantt widget

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

  • javascript
  • $("#gantt").ejGantt({
         // ...     
         workWeek: ["Sunday","Monday","Tuesday","Wednesday","Thursday"],
         // ...
    });

    The above code example makes Fridays and Saturdays as non-working days in a week.

    Change_Workweek_img1

    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 as true.