'says' to change the active date in the mini calendar each time, the active date in the scheduler is changed
calendar | object | the mini calendar object |
shift | 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 |
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");
});
The method requires the minical plugin to be activated.