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

Function _fnCompatCols

external/.datatables.js:1806–1817  ·  view source on GitHub ↗

* Provide backwards compatibility for column options. Note that the new options * are mapped onto the old parameters, so this is an external interface change * only. * @param {object} init Object to map

(init)

Source from the content-addressed store, hash-verified

1804 * @param {object} init Object to map
1805 */
1806 function _fnCompatCols(init) {
1807 _fnCompatMap(init, "orderable", "bSortable")
1808 _fnCompatMap(init, "orderData", "aDataSort")
1809 _fnCompatMap(init, "orderSequence", "asSorting")
1810 _fnCompatMap(init, "orderDataType", "sortDataType")
1811
1812 // orderData can be given as an integer
1813 var dataSort = init.aDataSort
1814 if (typeof dataSort === "number" && !Array.isArray(dataSort)) {
1815 init.aDataSort = [dataSort]
1816 }
1817 }
1818
1819 /**
1820 * Browser feature detection for capabilities, quirks

Callers 2

DataTableFunction · 0.85
_fnColumnOptionsFunction · 0.85

Calls 1

_fnCompatMapFunction · 0.85

Tested by

no test coverage detected