()
| 1068 | } |
| 1069 | |
| 1070 | function buildMonths() { |
| 1071 | clearNode(self.monthNav); |
| 1072 | self.monthNav.appendChild(self.prevMonthNav); |
| 1073 | |
| 1074 | if (self.config.showMonths) { |
| 1075 | self.yearElements = []; |
| 1076 | self.monthElements = []; |
| 1077 | } |
| 1078 | |
| 1079 | for (let m = self.config.showMonths; m--; ) { |
| 1080 | const month = buildMonth(); |
| 1081 | self.yearElements.push(month.yearElement); |
| 1082 | self.monthElements.push(month.monthElement); |
| 1083 | self.monthNav.appendChild(month.container); |
| 1084 | } |
| 1085 | |
| 1086 | self.monthNav.appendChild(self.nextMonthNav); |
| 1087 | } |
| 1088 | |
| 1089 | function buildMonthNav() { |
| 1090 | self.monthNav = createElement<HTMLDivElement>("div", "flatpickr-months"); |
no test coverage detected
searching dependent graphs…