Holidays

5 Jan 20181 minute to read

The Holidays in Gantt control is used to highlight the non-working days in Gantt control and it can be initialized by using holidays property. Each holiday can be defined with day, label, background properties. The following code example shows how to initialize the Holidays in Gantt control.

  • JAVASCRIPT
  • $("#GanttContainer").ejGantt({
            //...
            holidays: [{
                day: "2/03/2014",
                label: " Public holiday",
                background: "yellow"
            }]
        });

    The following screenshot shows the output of Holidays in Gantt control.