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

Method _toggleMode

codebase/sources/dhtmlxscheduler.es.js:9037–9040  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9035 this.setState({ date: newDate });
9036 }
9037 _toggleMode() {
9038 const newIndex = (this.state.currentModeIndex + 1) % this.state.modes.length;
9039 this.setState({ currentModeIndex: newIndex });
9040 }
9041 _renderCalendarHeader(container) {
9042 const { mode, date } = this.getState();
9043 const header = document.createElement("div");

Callers

nothing calls this directly

Calls 1

setStateMethod · 0.95

Tested by

no test coverage detected