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

Function _fnGetColumns

external/.datatables.js:2089–2099  ·  view source on GitHub ↗

* Get an array of column indexes that match a given property * @param {object} oSettings dataTables settings object * @param {string} sParam Parameter in aoColumns to look for - typically * bVisible or bSearchable * @returns {array} Array of indexes with matched properties * @member

(oSettings, sParam)

Source from the content-addressed store, hash-verified

2087 * @memberof DataTable#oApi
2088 */
2089 function _fnGetColumns(oSettings, sParam) {
2090 var a = []
2091
2092 oSettings.aoColumns.map(function (val, i) {
2093 if (val[sParam]) {
2094 a.push(i)
2095 }
2096 })
2097
2098 return a
2099 }
2100
2101 /**
2102 * Allow the result from a type detection function to be `true` while

Callers 3

_fnVisibleToColumnIndexFunction · 0.85
_fnColumnIndexToVisibleFunction · 0.85
_fnCalculateColumnWidthsFunction · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected