jqgrid_utils 1.36.0 → 1.38.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
@@ -19,6 +19,10 @@ Convenient Functions for free jqGrid
19
19
 
20
20
  ```
21
21
 
22
+ # Documentation
23
+ https://github.com/myridia/jqgrid_utils/blob/main/README.md
24
+
25
+ # Source code:
22
26
  Source: https://github.com/myridia/jqgrid_utils/actions
23
27
 
24
28
  <a name="module_Jqgrid_utils"></a>
@@ -28,6 +32,8 @@ A module for Jqgrid_utils
28
32
 
29
33
 
30
34
  * [Jqgrid_utils](#module_Jqgrid_utils)
35
+ * [module.exports#format_currency(col_model, edit_field, currency)](#exp_module_Jqgrid_utils--module.exports+format_currency) ⏏
36
+ * [module.exports#add_checkbox(col_model, field_name)](#exp_module_Jqgrid_utils--module.exports+add_checkbox) ⏏
31
37
  * [module.exports#add_class(col_model, field_name, class_name)](#exp_module_Jqgrid_utils--module.exports+add_class) ⏏
32
38
  * [module.exports#_grid_substract_on()](#exp_module_Jqgrid_utils--module.exports+_grid_substract_on) ⏏
33
39
  * [module.exports#grid_substract_on(grid, minuend, subtrahend, difference, no_negative)](#exp_module_Jqgrid_utils--module.exports+grid_substract_on) ⏏
@@ -87,6 +93,42 @@ A module for Jqgrid_utils
87
93
  * [module.exports#set_filter(grid, data, fx, append_to)](#exp_module_Jqgrid_utils--module.exports+set_filter) ⏏
88
94
  * [module.exports#_filter()](#exp_module_Jqgrid_utils--module.exports+_filter) ⏏
89
95
 
96
+ <a name="exp_module_Jqgrid_utils--module.exports+format_currency"></a>
97
+
98
+ ### module.exports#format\_currency(col_model, edit_field, currency) ⏏
99
+ Format a number into a currency
100
+
101
+ **Kind**: Exported function
102
+
103
+ | Param | Type | Default | Description |
104
+ | --- | --- | --- | --- |
105
+ | col_model | <code>object</code> | | col_model of the grid |
106
+ | edit_field | <code>string</code> | | name of column to be formatter |
107
+ | currency | <code>string</code> | <code>&quot;$&quot;</code> | currency symbol, default is $ |
108
+
109
+ **Example**
110
+ ```js
111
+ var jqu = new Jqgrid_utils();
112
+ let _data = await jqu.format_currency(this,'my_field','$');
113
+ console.log(_data);
114
+ ```
115
+ <a name="exp_module_Jqgrid_utils--module.exports+add_checkbox"></a>
116
+
117
+ ### module.exports#add\_checkbox(col_model, field_name) ⏏
118
+ Add a Checkbox to the Model
119
+
120
+ **Kind**: Exported function
121
+
122
+ | Param | Type | Description |
123
+ | --- | --- | --- |
124
+ | col_model | <code>array</code> | grid col_model |
125
+ | field_name | <code>string</code> | column_name |
126
+
127
+ **Example**
128
+ ```js
129
+ var jqu = new Jqgrid_utils();
130
+ ol_model = await jqu.add_checkbox(col_model, "closed");
131
+ ```
90
132
  <a name="exp_module_Jqgrid_utils--module.exports+add_class"></a>
91
133
 
92
134
  ### module.exports#add\_class(col_model, field_name, class_name) ⏏