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

Function _columnAutoRender

external/.datatables.js:2237–2254  ·  view source on GitHub ↗

* Apply an auto detected renderer to data which doesn't yet have * a renderer

(settings, colIdx)

Source from the content-addressed store, hash-verified

2235 * a renderer
2236 */
2237 function _columnAutoRender(settings, colIdx) {
2238 var data = settings.aoData
2239
2240 for (var i = 0; i < data.length; i++) {
2241 if (data[i].nTr) {
2242 // We have to update the display here since there is no
2243 // invalidation check for the data
2244 var display = _fnGetCellData(settings, i, colIdx, "display")
2245
2246 data[i].displayData[colIdx] = display
2247 _fnWriteCell(data[i].anCells[colIdx], display)
2248
2249 // No need to update sort / filter data since it has
2250 // been invalidated and will be re-read with the
2251 // renderer now applied
2252 }
2253 }
2254 }
2255
2256 /**
2257 * Apply a class name to a column's header cells

Callers 1

_fnColumnTypesFunction · 0.85

Calls 2

_fnGetCellDataFunction · 0.85
_fnWriteCellFunction · 0.85

Tested by

no test coverage detected