MCPcopy
hub / github.com/flatpickr/flatpickr / buildWeeks

Function buildWeeks

src/index.ts:1290–1306  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1288
1289 /* istanbul ignore next */
1290 function buildWeeks() {
1291 self.calendarContainer.classList.add("hasWeeks");
1292 const weekWrapper = createElement<HTMLDivElement>(
1293 "div",
1294 "flatpickr-weekwrapper"
1295 );
1296 weekWrapper.appendChild(
1297 createElement("span", "flatpickr-weekday", self.l10n.weekAbbreviation)
1298 );
1299 const weekNumbers = createElement<HTMLDivElement>("div", "flatpickr-weeks");
1300 weekWrapper.appendChild(weekNumbers);
1301
1302 return {
1303 weekWrapper,
1304 weekNumbers,
1305 };
1306 }
1307
1308 function changeMonth(value: number, isOffset = true) {
1309 const delta = isOffset ? value : value - self.currentMonth;

Callers 1

buildFunction · 0.85

Calls 1

createElementFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…