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

Method setState

codebase/dhtmlxscheduler.es.js:2946–2949  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

2944 return { ...this.state, mode: this.state.modes[this.state.currentModeIndex] };
2945 }
2946 setState(i) {
2947 const t = { ...this.state };
2948 i.mode && (i.currentModeIndex = this.state.modes.indexOf(i.mode)), this.state = { ...this.state, ...i }, this._notifyStateChange(t, this.state), this.container && this.render(this.container);
2949 }
2950 onStateChange(i) {
2951 return this.onStateChangeHandlers.push(i), () => {
2952 const t = this.onStateChangeHandlers.indexOf(i);

Callers 4

_adjustDateMethod · 0.95
_toggleModeMethod · 0.95
_renderMonthGridMethod · 0.95
_renderYearGridMethod · 0.95

Calls 2

_notifyStateChangeMethod · 0.95
renderMethod · 0.95

Tested by

no test coverage detected