linkCalendar

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

void linkCalendar(object calendar,function shift);
calendarobjectthe mini calendar object
shiftfunctiona 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");  
});

Related samples

Details

The method requires the minical plugin to be activated.

See also
Back to top