본문으로 건너뛰기

linkCalendar

Description

이 메서드는 스케줄러에서 활성 날짜가 변경될 때마다 미니 캘린더의 활성 날짜를 업데이트합니다.

linkCalendar: (calendar: any, shift: SchedulerCallback) => void

Parameters

  • calendar - (required) object - 미니 캘린더 인스턴스입니다.
  • shift - (required) function - 미니 캘린더와 스케줄러의 활성 날짜 간 차이를 결정하는 함수입니다. 스케줄러의 날짜를 입력으로 받아 미니 캘린더에 표시할 날짜를 반환합니다.

Example

var calendar = scheduler.renderCalendar({
container:"cal_here",
navigation:true,
handler:function(date){
scheduler.setCurrentView(date, scheduler._mode);
}
});

// 미니 캘린더는 항상 스케줄러보다 한 달 앞선 날짜를 표시합니다.
scheduler.linkCalendar(calendar, function(date){
return scheduler.date.add(date, 1, "month");
});

Details

노트

이 메서드를 사용하려면 minical 플러그인이 활성화되어 있어야 합니다.

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.