jqgrid_utils 1.41.0 → 1.42.0

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/README.md CHANGED
@@ -150,7 +150,7 @@ A module for Jqgrid_utils
150
150
  * [module.exports#grid_ratio_on(grid, fraction_col, denominator_col, ratio_col)](#exp_module_Jqgrid_utils--module.exports+grid_ratio_on) ⏏
151
151
  * [module.exports#is_html(str)](#exp_module_Jqgrid_utils--module.exports+is_html) ⇒ <code>boolean</code> ⏏
152
152
  * [module.exports#_grid_sum_on()](#exp_module_Jqgrid_utils--module.exports+_grid_sum_on) ⏏
153
- * [module.exports#grid_sum_on(grid, fields, format, exclude)](#exp_module_Jqgrid_utils--module.exports+grid_sum_on) ⏏
153
+ * [module.exports#grid_sum_on(grid, fields, format, exclude, unique)](#exp_module_Jqgrid_utils--module.exports+grid_sum_on) ⏏
154
154
  * [module.exports#_grid_avg_on()](#exp_module_Jqgrid_utils--module.exports+_grid_avg_on) ⏏
155
155
  * [module.exports#grid_avg_on(grid, fields)](#exp_module_Jqgrid_utils--module.exports+grid_avg_on) ⏏
156
156
  * [module.exports#_grid_percent_on()](#exp_module_Jqgrid_utils--module.exports+_grid_percent_on) ⏏
@@ -358,7 +358,7 @@ Syncron Alias grid_sum_on
358
358
  **Kind**: Exported function
359
359
  <a name="exp_module_Jqgrid_utils--module.exports+grid_sum_on"></a>
360
360
 
361
- ### module.exports#grid\_sum\_on(grid, fields, format, exclude) ⏏
361
+ ### module.exports#grid\_sum\_on(grid, fields, format, exclude, unique) ⏏
362
362
  Sum the columns values together
363
363
 
364
364
  **Kind**: Exported function
@@ -369,6 +369,7 @@ Sum the columns values together
369
369
  | fields | <code>string</code> | Column/Field Name to sum |
370
370
  | format | <code>string</code> | format, currency sign |
371
371
  | exclude | <code>array</code> | exclude, array of column field key:value object, example [{"user": "foo"}] - it excludes user with value foo |
372
+ | unique | <code>string</code> | unique, sum only unique from this column |
372
373
 
373
374
  **Example**
374
375
  ```js
@@ -381,7 +382,8 @@ gridComplete: function () {
381
382
  "wait_icollect",
382
383
  ]
383
384
  "$",
384
- [{user:"foo",country:"None"}]
385
+ [{user:"foo",country:"None"}],
386
+ "column_name_customer"
385
387
  );
386
388
  },
387
389
  ```