MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / dhtmlxHook

Function dhtmlxHook

codebase/sources/dhtmlxscheduler.es.js:10–28  ·  view source on GitHub ↗

@license dhtmlxScheduler v.7.2.14 Standard To use dhtmlxScheduler in non-GPL projects (and get Pro version of the product), please obtain Commercial/Enterprise or Ultimate license on our site https://dhtmlx.com/docs/products/dhtmlxScheduler/#licensing or contact us at sales@dhtmlx.com (c) XB Soft

()

Source from the content-addressed store, hash-verified

8
9*/
10function dhtmlxHook() {
11 if (typeof dhtmlx != "undefined" && dhtmlx.attaches) {
12 dhtmlx.attaches.attachScheduler = function(day, mode, tabs, scheduler2) {
13 var tabs = tabs || '<div class="dhx_cal_tab" name="day_tab" data-tab="day" style="right:204px;"></div><div class="dhx_cal_tab" name="week_tab" data-tab="week" style="right:140px;"></div><div class="dhx_cal_tab" name="month_tab" data-tab="month" style="right:76px;"></div>';
14 var obj = document.createElement("DIV");
15 obj.id = "dhxSchedObj_" + this._genStr(12);
16 obj.innerHTML = '<div id="' + obj.id + '" class="dhx_cal_container" style="width:100%; height:100%;"><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>' + tabs + '</div><div class="dhx_cal_header"></div><div class="dhx_cal_data"></div></div>';
17 document.body.appendChild(obj.firstChild);
18 this.attachObject(obj.id, false, true);
19 this.vs[this.av].sched = scheduler2;
20 this.vs[this.av].schedId = obj.id;
21 scheduler2.setSizes = scheduler2.updateView;
22 scheduler2.destructor = function() {
23 };
24 scheduler2.init(obj.id, day, mode);
25 return this.vs[this._viewRestore()].sched;
26 };
27 }
28}
29const theme = "";
30var globalScope;
31if (typeof window !== "undefined") {

Callers 1

Calls 1

initMethod · 0.65

Tested by

no test coverage detected