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);

Parameters

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");  
});

Required extension: ext/dhtmlxscheduler_minical.js

Related samples

See also
Back to top