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

Function _columnAutoClass

external/.datatables.js:2259–2265  ·  view source on GitHub ↗

* Apply a class name to a column's header cells

(container, colIdx, className)

Source from the content-addressed store, hash-verified

2257 * Apply a class name to a column's header cells
2258 */
2259 function _columnAutoClass(container, colIdx, className) {
2260 container.forEach(function (row) {
2261 if (row[colIdx] && row[colIdx].unique) {
2262 _addClass(row[colIdx].cell, className)
2263 }
2264 })
2265 }
2266
2267 /**
2268 * Take the column definitions and static columns arrays and calculate how

Callers 1

_fnColumnTypesFunction · 0.85

Calls 2

_addClassFunction · 0.85
forEachMethod · 0.80

Tested by

no test coverage detected