跳到主要内容

getCalendar

Description

按 ID 获取工作时间日历

getCalendar: (calendarId?: string | number) => Calendar

Parameters

  • calendarId - (string | number) - 可选,是全局日历的 ID,或 "global"

Returns

  • config - (Calendar) - 日历对象

Example

var calendar = gantt.getCalendar(calendarId);

Details

上述示例返回的对象是一个 日历对象

默认工作时间如下:

  • 工作日为星期一至星期五。
  • 工作时段为 08:00 至 17:00。

Change log

  • 在版本 4.2 中新增
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.