MCPcopy
hub / github.com/flatpickr/flatpickr / build

Function build

src/plugins/monthSelect/index.ts:48–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

buildMonthsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…