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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jquery.dgtable 0.5.52
2
+ * jquery.dgtable 0.5.53
3
3
  * git://github.com/danielgindi/jquery.dgtable.git
4
4
  */
5
5
  'use strict';
@@ -2475,6 +2475,7 @@ DGTable.prototype.renderRows = function (first, last) {
2475
2475
 
2476
2476
  let tableClassName = o.tableClassName,
2477
2477
  rowClassName = tableClassName + '-row',
2478
+ altRowClassName = tableClassName + '-row-alt',
2478
2479
  cellClassName = tableClassName + '-cell',
2479
2480
  rows = p.filteredRows || p.rows,
2480
2481
  isDataFiltered = !!p.filteredRows,
@@ -2508,6 +2509,9 @@ DGTable.prototype.renderRows = function (first, last) {
2508
2509
 
2509
2510
  let row = createElement('div');
2510
2511
  row.className = rowClassName;
2512
+ if (i % 2 === 1)
2513
+ row.className += ' ' + altRowClassName;
2514
+
2511
2515
  row['rowIndex'] = i;
2512
2516
  row['physicalRowIndex'] = physicalRowIndex;
2513
2517