You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: data/api/gantt_calendar_other.md
+63-15Lines changed: 63 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,50 +30,92 @@ The **calendar** object possesses the following methods and properties:
30
30
- **_to_** - (*Date*) - the date when the time span is scheduled to be completed
31
31
- **_hours?_** - (*string[] | number[]*) - optional, 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"])
32
32
- **_days?_** - (*WorkDaysTuple | boolean*) - optional, an array of 7 days of the week (from 0 - Sunday, to 6 - Saturday), where 1/true stands for a working day and 0/false - a non-working day.
- <spanclass=submethod>**isWorkTime (config, time_unit): boolean**</span> - checks whether the specified date is working
52
91
-**_config_** - (*Date | object*) - either a date to check or the [configuration object](api/gantt_isworktime.md#configurationobjectproperties) of a time span:
53
92
- **_date_** - (*Date*) - a date to check
54
93
- **_unit?_** - (*string*) - optional, a time unit: "minute", "hour", "day", "week", "month", "year"
55
-
- **_task?_** - (*Task*) - optional, the object of the task the duration of which should be calculated
56
-
-**_time_unit?_** - (*string*) - optional, a time unit: "minute", "hour", "day", "week", "month", "year". Not needed at all when the first parameter is specified as an object<br><br>
94
+
-**_time_unit?_** - (*string*) - optional, a time unit: "minute", "hour", "day", "week", "month", "year". Not needed at all when the first parameter is specified as an object
- <spanclass=submethod>**calculateDuration (config, end): number**</span> - calculates the duration of a task
95
141
-**_config_** - (*Date | object*) - either the date when a task is scheduled to begin or the [configuration object](api/gantt_calculateduration.md#configurationobjectproperties) of a time span:
96
142
- **_start_date_** - (*Date*) - the date when a task is scheduled to begin
97
143
- **_end_date_** - (*Date*) - the date when a task is scheduled to be completed
98
-
- **_task?_** - (*Task*) - optional, the object of the task the duration of which should be calculated
99
144
-**_end?_** - (*Date*) - the date when a task is scheduled to be completed. Not needed at all when the first parameter is specified as an object<br>
<td> an array of working hours as 'from'-'to' pairs. <br><i>'false'</i> value sets a day-off, <i>'true' (default value)</i> applies the default hours (["8:00-17:00"])</td>
76
+
<td> an array of working hours as 'from'-'to' pairs. <br><i>'false'</i> value unsets working hours,
77
+
<i>'true' (default value)</i> applies the default hours: (["8:00-17:00"])</td>
0 commit comments