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

Function _fnVisbleColumns

external/.datatables.js:2065–2079  ·  view source on GitHub ↗

* Get the number of visible columns * @param {object} oSettings dataTables settings object * @returns {int} i the number of visible columns * @memberof DataTable#oApi

(settings)

Source from the content-addressed store, hash-verified

2063 * @memberof DataTable#oApi
2064 */
2065 function _fnVisbleColumns(settings) {
2066 var layout = settings.aoHeader
2067 var columns = settings.aoColumns
2068 var vis = 0
2069
2070 if (layout.length) {
2071 for (var i = 0, ien = layout[0].length; i < ien; i++) {
2072 if (columns[i].bVisible && $(layout[0][i].cell).css("display") !== "none") {
2073 vis++
2074 }
2075 }
2076 }
2077
2078 return vis
2079 }
2080
2081 /**
2082 * Get an array of column indexes that match a given property

Callers 4

_emptyRowFunction · 0.85
addRowFunction · 0.85
__details_eventsFunction · 0.85
.datatables.jsFile · 0.85

Calls 1

$Function · 0.70

Tested by

no test coverage detected