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

Function extend

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

Source from the content-addressed store, hash-verified

8615 return this._prepareDataItem(dataItem);
8616 } };
8617 function extend(scheduler2) {
8618 scheduler2.createDataProcessor = function(config) {
8619 var router;
8620 var tMode;
8621 if (config instanceof Function) {
8622 router = config;
8623 } else if (config.hasOwnProperty("router")) {
8624 router = config.router;
8625 } else if (config.hasOwnProperty("event")) {
8626 router = config;
8627 }
8628 if (router) {
8629 tMode = "CUSTOM";
8630 } else {
8631 tMode = config.mode || "REST-JSON";
8632 }
8633 var dp = new DataProcessor(config.url);
8634 dp.init(scheduler2);
8635 dp.setTransactionMode({ mode: tMode, router }, config.batchUpdate);
8636 return dp;
8637 };
8638 scheduler2.DataProcessor = DataProcessor;
8639 }
8640 function message(scheduler2) {
8641 var boxAttribute = "data-dhxbox";
8642 var _dhx_msg_cfg = null;

Callers 1

factoryMethodFunction · 0.70

Calls 1

initMethod · 0.65

Tested by

no test coverage detected