jquery.dgtable 0.5.52 → 0.5.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jquery.dgtable",
3
3
  "description": "High-performance table View for jQuery",
4
- "version": "0.5.52",
4
+ "version": "0.5.53",
5
5
  "main": "dist/jquery.dgtable.cjs.min.js",
6
6
  "module": "dist/jquery.dgtable.es6.min.js",
7
7
  "broswer": "dist/jquery.dgtable.umd.min.js",
package/src/index.js CHANGED
@@ -845,6 +845,7 @@ DGTable.prototype.renderRows = function (first, last) {
845
845
 
846
846
  let tableClassName = o.tableClassName,
847
847
  rowClassName = tableClassName + '-row',
848
+ altRowClassName = tableClassName + '-row-alt',
848
849
  cellClassName = tableClassName + '-cell',
849
850
  rows = p.filteredRows || p.rows,
850
851
  isDataFiltered = !!p.filteredRows,
@@ -878,6 +879,9 @@ DGTable.prototype.renderRows = function (first, last) {
878
879
 
879
880
  let row = createElement('div');
880
881
  row.className = rowClassName;
882
+ if (i % 2 === 1)
883
+ row.className += ' ' + altRowClassName;
884
+
881
885
  row['rowIndex'] = i;
882
886
  row['physicalRowIndex'] = physicalRowIndex;
883
887