MCPcopy Create free account
hub / github.com/OpenIntroStat/ims / selectCols

Function selectCols

libs/datatables-binding-0.18/datatables.js:1125–1135  ·  view source on GitHub ↗
(ignoreSelectable)

Source from the content-addressed store, hash-verified

1123 // update selected2 and then
1124 // refresh the col selection state according to values in selected2
1125 var selectCols = function(ignoreSelectable) {
1126 if (!ignoreSelectable) onlyKeepSelectableCols();
1127 // if selected2 is not a valide index (e.g., larger than the column number)
1128 // table.columns(selected2) will fail and result in a blank table
1129 // this is different from the table.rows(), where the out-of-range indexes
1130 // doesn't affect at all
1131 selected2 = $(selected2).filter(table.columns().indexes()).get();
1132 table.columns().nodes().flatten().to$().removeClass(selClass);
1133 if (selected2.length > 0)
1134 table.columns(selected2).nodes().flatten().to$().addClass(selClass);
1135 }
1136 var callback = function() {
1137 var colIdx = selTarget === 'column' ? table.cell(this).index().column :
1138 $.inArray(this, table.columns().footer()),

Callers 2

callbackFunction · 0.85
datatables.jsFile · 0.85

Calls 2

onlyKeepSelectableColsFunction · 0.85
$Function · 0.50

Tested by

no test coverage detected