본문으로 건너뛰기

createCalendar

Description

작동하는 캘린더를 생성합니다

createCalendar: (parentCalendar?: Calendar) => Calendar

Parameters

  • parentCalendar - (optional) Calendar - 기존의 캘린더로, 이를 기반으로 새로운 캘린더를 생성하는 데 사용됩니다

Returns

  • calendar - (Calendar) - 캘린더 객체

Example

// 주 7일, 하루 24시간의 풀타임 캘린더를 생성
var calendar1 = gantt.createCalendar();

// 기존 캘린더를 기반으로 새 캘린더를 생성합니다(복사).
var calendar2 = gantt.createCalendar(parentCalendar);

Details

버전 4.2에 추가되었습니다

캘린더가 생성되면, addCalendar 메서드를 사용하여 Gantt에 추가해야 합니다:

gantt.addCalendar(calendar1);
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.