attaches dhtmlxScheduler to a cell
day | Date | (optional) js date object, initial date in scheduler, current date by default |
mode | string | (optional) name of the initial mode ("month", "day", "week"), "week" by default |
contId | string | (optional) extended config, please see below |
scheduler | object | (optional) dhtmlxScheduler object (another instance, only PRO version of scheduler) |
object | dhtmlXScheduler instance |
var myScheduler = dhxComponent.cells(id).attachScheduler();
// or
var myScheduler = dhxComponent.cells(id).attachScheduler(null, "month");
//or
var sTabs = '<div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>'+
'<div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>'+
'<div class="dhx_cal_tab" name="month_tab" style="right:280px;"></div>'+
'<div class="dhx_cal_tab" name="timeline_tab" style="right:76px;"></div>';
var myScheduler = dhxComponent.cells(id).attachScheduler(null, "month", sTabs);
There are two possible values of the contId parameter: