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

Function _fnColumnIndexToVisible

external/.datatables.js:2052–2057  ·  view source on GitHub ↗

* Convert the index of an index in the data array and convert it to the visible * column index (take account of hidden columns) * @param {int} iMatch Column index to lookup * @param {object} oSettings dataTables settings object * @returns {int} i the data index * @memberof DataTable#

(oSettings, iMatch)

Source from the content-addressed store, hash-verified

2050 * @memberof DataTable#oApi
2051 */
2052 function _fnColumnIndexToVisible(oSettings, iMatch) {
2053 var aiVis = _fnGetColumns(oSettings, "bVisible")
2054 var iPos = aiVis.indexOf(iMatch)
2055
2056 return iPos !== -1 ? iPos : null
2057 }
2058
2059 /**
2060 * Get the number of visible columns

Callers 2

_fnSortDataFunction · 0.85
.datatables.jsFile · 0.85

Calls 2

_fnGetColumnsFunction · 0.85
indexOfMethod · 0.80

Tested by

no test coverage detected