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

Function selectedRows

libs/datatables-binding-0.18/datatables.js:989–1001  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

987 // function will add rows to selected1 (keep the existing selection), which is
988 // inconsistent with column and cell selection.
989 var selectedRows = function() {
990 var rows = table.rows('.' + selClass);
991 var idx = rows.indexes().toArray();
992 if (!server) {
993 selected1 = addOne(idx);
994 return selected1;
995 }
996 idx = idx.map(function(i) {
997 return DT_rows_current[i];
998 });
999 selected1 = selMode === 'multiple' ? unique(selected1.concat(idx)) : idx;
1000 return selected1;
1001 }
1002 // Change selected1's value based on selectable1, then refresh the row state
1003 var onlyKeepSelectableRows = function() {
1004 if (selDisable) { // users can't select; useful when only want backend select

Callers 2

applyCrosstalkSelectionFunction · 0.85
datatables.jsFile · 0.85

Calls 2

addOneFunction · 0.85
uniqueFunction · 0.85

Tested by

no test coverage detected