[]
Sheets.GanttSheet.CustomWorkWeek
↳ CustomWorkWeek
• new CustomWorkWeek(workDays, start, finish)
Creates a new week with the specified work times of each day for a custom date range.
classdesc Represents the a week in calender, which defines the work times of each day.
| Name | Type | Description |
|---|---|---|
workDays |
WorkDay[] |
A workday array with 7 items from Sunday to Saturday, specifies the work times of each day in a week. |
start |
Date |
A date specifies the start of the date range to apply this week definition in calendar. |
finish |
Date |
A date specifies the finish of the date range to apply this week definition in calendar. |
• finish: Date
Gets or sets the finish date for this custom work week.
• start: Date
Gets or sets the start date for this custom work week.
▸ getWorkDay(index): WorkDay
Gets the work times for the specified day in the week.
| Name | Type | Description |
|---|---|---|
index |
number |
A number from 0 to 6, or a DayOfWeek value indicates the day. |
The work times for the specified day.