[]
Sheets.GanttSheet.Calendar
• new Calendar(name
, defaultWorkWeek?
, customWorkWeeks?
)
Creates a calendar with the provided work weeks.
classdesc
Represents a calender for scheduling, which defines the work times of each day.
Name | Type | Description |
---|---|---|
name |
string |
A string value specifies the name of this calendar. |
defaultWorkWeek? |
WorkWeek |
- |
customWorkWeeks? |
CustomWorkWeek [] |
- |
• customWorkWeeks: CustomWorkWeek
[]
Gets or sets the custom work weeks for this calendar. Note do not modify a calendar in use. Instead, you could copy a calendar and make changes, then replace the original one.
• defaultWorkWeek: WorkWeek
Gets or sets the default work week for this calendar. Note do not modify a calendar in use. Instead, you could copy a calendar and make changes, then replace the original one.
• name: string
Gets or sets the calendar name.
▪ Static
hours24: Calendar
The 24 hours calendar, which defines the work time as 24 hours by 7 days in a week.
readonly
▪ Static
nightShift: Calendar
The night-shift calendar, which defines the work time as 23:00 to 3:00 and 4:00 to 8:00 from Monday evening to Saturday morning.
readonly
▪ Static
standard: Calendar
The standard calendar, which defines the work time as 8:00 to 12:00 and 13:00 to 17:00 for Monday to Friday.
readonly
▸ copyTo(newName
): Calendar
Copies the work weeks of this calendar to a new calendar.
Name | Type | Description |
---|---|---|
newName |
string |
A string indicates the name of the new calendar. |
The copy result.