MCPcopy
hub / github.com/flatpickr/flatpickr / buildWeekdays

Function buildWeekdays

src/index.ts:1243–1263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1241 }
1242
1243 function buildWeekdays() {
1244 if (!self.weekdayContainer)
1245 self.weekdayContainer = createElement<HTMLDivElement>(
1246 "div",
1247 "flatpickr-weekdays"
1248 );
1249 else clearNode(self.weekdayContainer);
1250
1251 for (let i = self.config.showMonths; i--; ) {
1252 const container = createElement<HTMLDivElement>(
1253 "div",
1254 "flatpickr-weekdaycontainer"
1255 );
1256
1257 self.weekdayContainer.appendChild(container);
1258 }
1259
1260 updateWeekdays();
1261
1262 return self.weekdayContainer;
1263 }
1264
1265 function updateWeekdays() {
1266 if (!self.weekdayContainer) {

Callers 1

buildFunction · 0.85

Calls 3

createElementFunction · 0.90
clearNodeFunction · 0.90
updateWeekdaysFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…