()
| 46 | } |
| 47 | |
| 48 | function build() { |
| 49 | if (!fp.rContainer) return; |
| 50 | |
| 51 | self.monthsContainer = fp._createElement<HTMLDivElement>( |
| 52 | "div", |
| 53 | "flatpickr-monthSelect-months" |
| 54 | ); |
| 55 | |
| 56 | self.monthsContainer.tabIndex = -1; |
| 57 | |
| 58 | buildMonths(); |
| 59 | |
| 60 | fp.rContainer.appendChild(self.monthsContainer); |
| 61 | |
| 62 | fp.calendarContainer.classList.add( |
| 63 | `flatpickr-monthSelect-theme-${config.theme}` |
| 64 | ); |
| 65 | } |
| 66 | |
| 67 | function buildMonths() { |
| 68 | if (!self.monthsContainer) return; |
nothing calls this directly
no test coverage detected
searching dependent graphs…