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

Method _renderDayGridHeader

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

Source from the content-addressed store, hash-verified

2990 n === "days" ? this._renderDayGrid(t) : n === "months" ? this._renderMonthGrid(t) : this._renderYearGrid(t);
2991 }
2992 _renderDayGridHeader(i) {
2993 const { date: t, filterDays: n } = this.getState(), s = this.scheduler;
2994 let a = s.date.week_start(new Date(t));
2995 const o = s.date.add(s.date.week_start(new Date(t)), 1, "week");
2996 i.classList.add("dhx_cal_datepicker_days");
2997 const _ = s.date.date_to_str("%D");
2998 for (; a.valueOf() < o.valueOf(); ) {
2999 if (!n || !n(a)) {
3000 const r = _(a), d = document.createElement("div");
3001 d.setAttribute("data-day", a.getDay()), d.classList.add("dhx_cal_datepicker_dayname"), d.innerText = r, i.appendChild(d);
3002 }
3003 a = s.date.add(a, 1, "day");
3004 }
3005 }
3006 _weeksBetween(i, t) {
3007 const n = this.scheduler;
3008 let s = 0, a = new Date(i);

Callers 1

_renderDayGridMethod · 0.95

Calls 6

getStateMethod · 0.95
nFunction · 0.70
_Function · 0.70
week_startMethod · 0.65
addMethod · 0.65
date_to_strMethod · 0.65

Tested by

no test coverage detected