* 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)
| 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 |
no test coverage detected