MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / extend$4

Function extend$4

codebase/sources/dhtmlxscheduler.js:7443–7461  ·  view source on GitHub ↗
(scheduler2)

Source from the content-addressed store, hash-verified

7441 };
7442 }
7443 function extend$4(scheduler2) {
7444 scheduler2.getRootView = function() {
7445 return { view: { render: function() {
7446 return { tag: "div", type: 1, attrs: { style: "width:100%;height:100%;" }, hooks: { didInsert: function() {
7447 scheduler2.setCurrentView();
7448 } }, body: [{ el: this.el, type: 1 }] };
7449 }, init: function() {
7450 var container = document.createElement("DIV");
7451 container.id = "scheduler_" + scheduler2.uid();
7452 container.style.width = "100%";
7453 container.style.height = "100%";
7454 container.classList.add("dhx_cal_container");
7455 container.cmp = "grid";
7456 container.innerHTML = '<div class="dhx_cal_navline"><div class="dhx_cal_prev_button"></div><div class="dhx_cal_next_button"></div><div class="dhx_cal_today_button"></div><div class="dhx_cal_date"></div><div class="dhx_cal_tab" data-tab="day"></div><div class="dhx_cal_tab" data-tab="week"></div><div class="dhx_cal_tab" data-tab="month"></div></div><div class="dhx_cal_header"></div><div class="dhx_cal_data"></div>';
7457 scheduler2.init(container);
7458 this.el = container;
7459 } }, type: 4 };
7460 };
7461 }
7462 function extend$3(scheduler2) {
7463 scheduler2._addThemeClass = function() {
7464 document.documentElement.setAttribute("data-scheduler-theme", scheduler2.skin);

Callers 1

factoryMethodFunction · 0.70

Calls 4

setCurrentViewMethod · 0.65
uidMethod · 0.65
addMethod · 0.65
initMethod · 0.65

Tested by

no test coverage detected