Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
''
)
trEl = skeletonEl.getElementsByTagName('tr')[0]
if (startCol > 0) {
appendToElement(trEl,
// will create (startCol + 1) td's
new Array(startCol + 1).join(EMPTY_CELL_HTML)
)
}
(seg.el as HTMLTableCellElement).colSpan = endCol - startCol
trEl.appendChild(seg.el)
if (endCol < colCnt) {
appendToElement(trEl,
// will create (colCnt - endCol) td's
new Array(colCnt - endCol + 1).join(EMPTY_CELL_HTML)
)
}
let introHtml = dayGrid.renderProps.renderIntroHtml()
if (introHtml) {
if (isRtl) {
appendToElement(trEl, introHtml)
} else {
prependToElement(trEl, introHtml)
}
}
return skeletonEl
}
if (startCol > 0) {
appendToElement(trEl,
// will create (startCol + 1) td's
new Array(startCol + 1).join(EMPTY_CELL_HTML));
}
seg.el.colSpan = endCol - startCol;
trEl.appendChild(seg.el);
if (endCol < colCnt) {
appendToElement(trEl,
// will create (colCnt - endCol) td's
new Array(colCnt - endCol + 1).join(EMPTY_CELL_HTML));
}
var introHtml = dayGrid.renderProps.renderIntroHtml();
if (introHtml) {
if (dayGrid.isRtl) {
appendToElement(trEl, introHtml);
}
else {
prependToElement(trEl, introHtml);
}
}
return skeletonEl;
};
return DayGridFillRenderer;
if (type === 'businessHours') {
className = 'bgevent'
} else {
className = type.toLowerCase()
}
skeletonEl = htmlToElement(
'<div class="fc-' + className + '-skeleton">' +
'<table><tbody><tr></tr></tbody></table>' +
'</div>'
)
trEl = skeletonEl.getElementsByTagName('tr')[0]
if (startCol > 0) {
appendToElement(trEl,
// will create (startCol + 1) td's
new Array(startCol + 1).join(EMPTY_CELL_HTML)
)
}
(seg.el as HTMLTableCellElement).colSpan = endCol - startCol
trEl.appendChild(seg.el)
if (endCol < colCnt) {
appendToElement(trEl,
// will create (colCnt - endCol) td's
new Array(colCnt - endCol + 1).join(EMPTY_CELL_HTML)
)
}
let introHtml = dayGrid.renderProps.renderIntroHtml()
}
(seg.el as HTMLTableCellElement).colSpan = endCol - startCol
trEl.appendChild(seg.el)
if (endCol < colCnt) {
appendToElement(trEl,
// will create (colCnt - endCol) td's
new Array(colCnt - endCol + 1).join(EMPTY_CELL_HTML)
)
}
let introHtml = dayGrid.renderProps.renderIntroHtml()
if (introHtml) {
if (isRtl) {
appendToElement(trEl, introHtml)
} else {
prependToElement(trEl, introHtml)
}
}
return skeletonEl
}
while (col <= rightCol) {
cellMatrix[i][col] = td
segMatrix[i][col] = seg
col++
}
tr.appendChild(td)
}
}
emptyCellsUntil(colCnt) // finish off the row
let introHtml = dayGrid.renderProps.renderIntroHtml()
if (introHtml) {
if (isRtl) {
appendToElement(tr, introHtml)
} else {
prependToElement(tr, introHtml)
}
}
tbody.appendChild(tr)
}
return { // a "rowStruct"
row: row, // the row number
tbodyEl: tbody,
cellMatrix: cellMatrix,
segMatrix: segMatrix,
segLevels: segLevels,
segs: rowSegs
}
var endCol = rightCol + 1;
var className;
var skeletonEl;
var trEl;
if (type === 'businessHours') {
className = 'bgevent';
}
else {
className = type.toLowerCase();
}
skeletonEl = htmlToElement('<div class="fc-' + className + '-skeleton">' +
'<table><tbody><tr></tr></tbody></table>' +
'</div>');
trEl = skeletonEl.getElementsByTagName('tr')[0];
if (startCol > 0) {
appendToElement(trEl,
// will create (startCol + 1) td's
new Array(startCol + 1).join(EMPTY_CELL_HTML));
}
seg.el.colSpan = endCol - startCol;
trEl.appendChild(seg.el);
if (endCol < colCnt) {
appendToElement(trEl,
// will create (colCnt - endCol) td's
new Array(colCnt - endCol + 1).join(EMPTY_CELL_HTML));
}
var introHtml = dayGrid.renderProps.renderIntroHtml();
if (introHtml) {
if (dayGrid.isRtl) {
appendToElement(trEl, introHtml);
}
else {
else { // a single-column segment
loneCellMatrix[i][col] = td;
}
while (col <= rightCol) {
cellMatrix[i][col] = td;
segMatrix[i][col] = seg;
col++;
}
tr.appendChild(td);
}
}
emptyCellsUntil(colCnt); // finish off the row
var introHtml = dayGrid.renderProps.renderIntroHtml();
if (introHtml) {
if (dayGrid.isRtl) {
appendToElement(tr, introHtml);
}
else {
prependToElement(tr, introHtml);
}
}
tbody.appendChild(tr);
}
return {
row: row,
tbodyEl: tbody,
cellMatrix: cellMatrix,
segMatrix: segMatrix,
segLevels: segLevels,
segs: rowSegs
};
};