MCPcopy Create free account
hub / github.com/breck7/scroll / addHeader

Function addHeader

external/.datatables.js:16726–16743  ·  view source on GitHub ↗
(structure)

Source from the content-addressed store, hash-verified

16724 }
16725
16726 var addHeader = function (structure) {
16727 structure.forEach(function (row) {
16728 addRow(
16729 row.map(function (cell) {
16730 return cell ? cell.title : ""
16731 }),
16732 rowPos
16733 )
16734 $("row:last c", rels).attr("s", "2") // bold
16735
16736 // Add any merge cells
16737 row.forEach(function (cell, columnCounter) {
16738 if (cell && (cell.colSpan > 1 || cell.rowSpan > 1)) {
16739 _excelMergeCells(rels, rowPos, columnCounter, cell.rowSpan, cell.colSpan)
16740 }
16741 })
16742 })
16743 }
16744
16745 // Title and top messages
16746 var exportInfo = dt.buttons.exportInfo(config)

Callers 1

.datatables.jsFile · 0.85

Calls 5

addRowFunction · 0.85
_excelMergeCellsFunction · 0.85
forEachMethod · 0.80
mapMethod · 0.80
$Function · 0.70

Tested by

no test coverage detected