(i)
| 2983 | _.classList.add("dhx_cal_datepicker_arrow", "scheduler_icon", "arrow_right"), s.appendChild(_), i.appendChild(s), this._domEvents.attach(a, "click", this._adjustDate.bind(this, -1)), this._domEvents.attach(_, "click", this._adjustDate.bind(this, 1)); |
| 2984 | } |
| 2985 | render(i) { |
| 2986 | this._domEvents.detachAll(), this.container = i || this.container, this.container.innerHTML = "", this.element || (this.element = document.createElement("div"), this.element.classList.add("dhx_cal_datepicker")), this.element.innerHTML = "", this.container.appendChild(this.element), this._renderCalendarHeader(this.element); |
| 2987 | const t = document.createElement("div"); |
| 2988 | t.classList.add("dhx_cal_datepicker_data"), this.element.appendChild(t); |
| 2989 | const { mode: n } = this.getState(); |
| 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)); |
no test coverage detected