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

Function tweakCellIndex

libs/datatables-binding-0.18/datatables.js:879–893  ·  view source on GitHub ↗
(cell)

Source from the content-addressed store, hash-verified

877
878 // change the row index of a cell
879 var tweakCellIndex = function(cell) {
880 var info = cell.index();
881 // some cell may not be valid. e.g, #759
882 // when using the RowGroup extension, datatables will
883 // generate the row label and the cells are not part of
884 // the data thus contain no row/col info
885 if (info === undefined)
886 return {row: null, col: null};
887 if (server) {
888 info.row = DT_rows_current[info.row];
889 } else {
890 info.row += 1;
891 }
892 return {row: info.row, col: info.column};
893 }
894
895 var cleanSelectedValues = function() {
896 changeInput('rows_selected', []);

Callers 3

selectCellsFunction · 0.85
datatables.jsFile · 0.85
cellInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected