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

Function getOrder

external/.datatables.js:17185–17189  ·  view source on GitHub ↗

* Get the original indexes in their current order * * @param dt DataTable being operated on - must be a single table instance * @returns Original indexes in current order

(dt)

Source from the content-addressed store, hash-verified

17183 * @returns Original indexes in current order
17184 */
17185 function getOrder(dt) {
17186 return dt.settings()[0].aoColumns.map(function (col) {
17187 return col._crOriginalIdx
17188 })
17189 }
17190 /**
17191 * Manipulate a header / footer array in DataTables settings to reorder
17192 * the columns.

Callers 2

ColReorderFunction · 0.70
.datatables.jsFile · 0.70

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected