특정 리소스(예: 사용자)와 연결할 수 있는 작업 캘린더를 정의하는 방법을 제공합니다.
Available only in PRO Edition
gantt.config.resource_property = "user"
gantt.config.resource_calendars = {
1 : gantt.addCalendar({
worktime: {
days: [0, 1, 1, 1, 1, 1, 0]
}
})
};
// 특정 작업에 캘린더 연결
{"id":3, user:"1", "text":"Task #2", "start_date":"11-04-2013",
"duration":"4", "parent":"1", "progress": 0.6, "open": true}
이 기능은 PRO 에디션에서만 제공됩니다.
버전 7.0 이전에는 dhtmlxGantt가 resource_calendars에 대해 약간 다른 형식을 사용했습니다.
위에 나와있는 사용자에게 작업 캘린더를 할당하는 업데이트된 방법이 더 간단하고 사용하기 편리하지만, 이전의 resource_calendars 구성 형식도 여전히 지원됩니다:
// 작업 캘린더 정의
var johnCalendarId = gantt.addCalendar({
worktime: {
days: [0, 1, 1, 1, 1, 1, 0]
}
}),
// 캘린더를 사용자에 연결
gantt.config.resource_calendars = {
"user":{
1 : johnCalendarId
}
};