unsets a working time in the Gantt Chart
config | object | the configuration object of a time span |
gantt.config.work_time = true;
// changes the working time of working days from ["8:00-17:00"] to ["9:00-18:00"]
gantt.setWorkTime({ hours:["9:00-18:00"] });
// unsets the working time
gantt.unsetWorkTime({ hours:["9:00-18:00"] });
added in version 4.1
The configuration object can contain the following properties:
Property | Description |
---|---|
day | a number of a week day [0 (Sunday) - 6 (Saturday)]. Note, you can set only 1 day at once |
|
|
date | a specific date to set as a working day or day off |
|
|
hours | an array of working hours as 'from'-'to' pairs. 'false' value sets a day-off, 'true' (default value) applies the default hours (["8:00-17:00"]) |
|