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