(container)
| 9069 | this._domEvents.attach(forwardArrow, "click", this._adjustDate.bind(this, 1)); |
| 9070 | } |
| 9071 | render(container) { |
| 9072 | this._domEvents.detachAll(); |
| 9073 | this.container = container || this.container; |
| 9074 | this.container.innerHTML = ""; |
| 9075 | if (!this.element) { |
| 9076 | this.element = document.createElement("div"); |
| 9077 | this.element.classList.add("dhx_cal_datepicker"); |
| 9078 | } |
| 9079 | this.element.innerHTML = ""; |
| 9080 | this.container.appendChild(this.element); |
| 9081 | this._renderCalendarHeader(this.element); |
| 9082 | const dataContainer = document.createElement("div"); |
| 9083 | dataContainer.classList.add("dhx_cal_datepicker_data"); |
| 9084 | this.element.appendChild(dataContainer); |
| 9085 | const { mode } = this.getState(); |
| 9086 | if (mode === "days") { |
| 9087 | this._renderDayGrid(dataContainer); |
| 9088 | } else if (mode === "months") { |
| 9089 | this._renderMonthGrid(dataContainer); |
| 9090 | } else { |
| 9091 | this._renderYearGrid(dataContainer); |
| 9092 | } |
| 9093 | } |
| 9094 | _renderDayGridHeader(daysOfWeekContainer) { |
| 9095 | const { date, filterDays } = this.getState(); |
| 9096 | const scheduler2 = this.scheduler; |
no test coverage detected