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
  import jQuery from 'jquery';
@@ -2469,6 +2469,7 @@ DGTable.prototype.renderRows = function (first, last) {
2469
2469
 
2470
2470
  let tableClassName = o.tableClassName,
2471
2471
  rowClassName = tableClassName + '-row',
2472
+ altRowClassName = tableClassName + '-row-alt',
2472
2473
  cellClassName = tableClassName + '-cell',
2473
2474
  rows = p.filteredRows || p.rows,
2474
2475
  isDataFiltered = !!p.filteredRows,
@@ -2502,6 +2503,9 @@ DGTable.prototype.renderRows = function (first, last) {
2502
2503
 
2503
2504
  let row = createElement('div');
2504
2505
  row.className = rowClassName;
2506
+ if (i % 2 === 1)
2507
+ row.className += ' ' + altRowClassName;
2508
+
2505
2509
  row['rowIndex'] = i;
2506
2510
  row['physicalRowIndex'] = physicalRowIndex;
2507
2511