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

Function _fnColumnsFromHeader

external/.datatables.js:2405–2415  ·  view source on GitHub ↗
(cell)

Source from the content-addressed store, hash-verified

2403 }
2404
2405 function _fnColumnsFromHeader(cell) {
2406 var attr = $(cell).closest("[data-dt-column]").attr("data-dt-column")
2407
2408 if (!attr) {
2409 return []
2410 }
2411
2412 return attr.split(",").map(function (val) {
2413 return val * 1
2414 })
2415 }
2416 /**
2417 * Add a data array to the table, creating DOM node etc. This is the parallel to
2418 * _fnGatherData, but for adding rows from a Javascript source, rather than a

Callers 3

_fnColumnsSumWidthFunction · 0.85
_fnSortAttachListenerFunction · 0.85
runFunction · 0.85

Calls 3

mapMethod · 0.80
splitMethod · 0.80
$Function · 0.70

Tested by

no test coverage detected