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

Function _fnAddTr

external/.datatables.js:2473–2485  ·  view source on GitHub ↗

* Add one or more TR elements to the table. Generally we'd expect to * use this for reading data from a DOM sourced table, but it could be * used for an TR element. Note that if a TR is given, it is used (i.e. * it is not cloned). * @param {object} settings dataTables settings object * @

(settings, trs)

Source from the content-addressed store, hash-verified

2471 * @memberof DataTable#oApi
2472 */
2473 function _fnAddTr(settings, trs) {
2474 var row
2475
2476 // Allow an individual node to be passed in
2477 if (!(trs instanceof $)) {
2478 trs = $(trs)
2479 }
2480
2481 return trs.map(function (i, el) {
2482 row = _fnGetRowElements(settings, el)
2483 return _fnAddData(settings, row.data, el, row.cells)
2484 })
2485 }
2486
2487 /**
2488 * Get the data for a given cell from the internal cache, taking into account data mapping

Callers 2

_fnInitialiseFunction · 0.85
.datatables.jsFile · 0.85

Calls 4

_fnGetRowElementsFunction · 0.85
_fnAddDataFunction · 0.85
mapMethod · 0.80
$Function · 0.70

Tested by

no test coverage detected