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

Method _initFromConfig

codebase/dhtmlxscheduler.es.js:11027–11036  ·  view source on GitHub ↗
(e, i)

Source from the content-addressed store, hash-verified

11025 return i._internal_id = this._seed++, this.$syncFactory && this.$syncFactory(i), e && this._initFromConfig(i, e), i;
11026 }
11027 _initFromConfig(e, i) {
11028 if (i.plugins && e.plugins(i.plugins), i.config && e.mixin(e.config, i.config, !0), i.templates && e.attachEvent("onTemplatesReady", function() {
11029 e.mixin(e.templates, i.templates, !0);
11030 }, { once: !0 }), i.events)
11031 for (const t in i.events)
11032 e.attachEvent(t, i.events[t]);
11033 i.locale && e.i18n.setLocale(i.locale), Array.isArray(i.calendars) && i.calendars.forEach(function(t) {
11034 e.addCalendar(t);
11035 }), i.container ? e.init(i.container) : e.init(), i.data && (typeof i.data == "string" ? e.load(i.data) : e.parse(i.data));
11036 }
11037}(Fa), Ue = Pe.getSchedulerInstance(), ut = { plugin: Ue.bind(Pe.plugin, Pe) };
11038window.scheduler = Ue, window.Scheduler = ut, window.$dhx || (window.$dhx = {}), window.$dhx.scheduler = Ue, window.$dhx.Scheduler = ut;
11039export {

Callers 1

getSchedulerInstanceMethod · 0.45

Calls 6

pluginsMethod · 0.65
mixinMethod · 0.65
attachEventMethod · 0.65
initMethod · 0.65
loadMethod · 0.65
parseMethod · 0.65

Tested by

no test coverage detected