Skip to main content

linkCalendar

Description

'says' to change the active date in the mini calendar each time, the active date in the scheduler is changed

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

Parameters

  • calendar - (required) object - the mini calendar object
  • shift - (required) function - a function that defines the difference between active dates in the mini-calendar
    and the scheduler. The function takes the scheduler's date as a parameter and
    returns the date that should be displayed in the mini calendar

Example

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

//mini calendar will always show one month later than the scheduler
scheduler.linkCalendar(calendar, function(date){
return scheduler.date.add(date, 1, "month");
});

Details

note

The method requires the minical plugin to be activated.

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.