jqgrid_utils 1.2.14 → 1.2.15

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
@@ -36,7 +36,7 @@ A module for Jqgrid_utils
36
36
 
37
37
 
38
38
  * [Jqgrid_utils](#module_Jqgrid_utils)
39
- * [module.exports#set_link()](#exp_module_Jqgrid_utils--module.exports+set_link) ⏏
39
+ * [module.exports#set_link(col_model, edit_field, url)](#exp_module_Jqgrid_utils--module.exports+set_link) ⏏
40
40
  * [module.exports#grid_set_caption(_grid, data)](#exp_module_Jqgrid_utils--module.exports+grid_set_caption) ⏏
41
41
  * [module.exports#s_resize_saved_cell_width()](#exp_module_Jqgrid_utils--module.exports+s_resize_saved_cell_width) ⏏
42
42
  * [module.exports#resize_saved_cell_width(col_model, page, grid)](#exp_module_Jqgrid_utils--module.exports+resize_saved_cell_width) ⏏
@@ -59,8 +59,22 @@ A module for Jqgrid_utils
59
59
 
60
60
  <a name="exp_module_Jqgrid_utils--module.exports+set_link"></a>
61
61
 
62
- ### module.exports#set\_link() ⏏
62
+ ### module.exports#set\_link(col_model, edit_field, url) ⏏
63
+ Add an URL from the data to a specific cell/column
64
+
63
65
  **Kind**: Exported function
66
+ **Result**: https://foo.bar.com/av0_code/bar
67
+
68
+ | Param | Type | Description |
69
+ | --- | --- | --- |
70
+ | col_model | <code>object</code> | col_model of the grid |
71
+ | edit_field | <code>string</code> | name of the column what should get convert to the url |
72
+ | url | <code>string</code> | the used url of the data |
73
+
74
+ **Example**
75
+ ```js
76
+ col_model = await jqu.set_link(col_model,'av0_code','url_code','target="blank"');
77
+ ```
64
78
  <a name="exp_module_Jqgrid_utils--module.exports+grid_set_caption"></a>
65
79
 
66
80
  ### module.exports#grid\_set\_caption(_grid, data) ⏏
@@ -28,7 +28,15 @@ module.exports = class Vanilla_website_utils
28
28
  }
29
29
 
30
30
  /**
31
+ * Add an URL from the data to a specific cell/column
31
32
  @alias module:Jqgrid_utils
33
+ @param {object} - col_model of the grid
34
+ @param {string} - name of the column what should get convert to the url
35
+ @param {string} - the used url of the data
36
+ @example
37
+ col_model = await jqu.set_link(col_model,'av0_code','url_code','target="blank"');
38
+ @result
39
+ * https://foo.bar.com/av0_code/bar
32
40
  */
33
41
  async set_link(col_model, edit_field, url ,attr='')
34
42
  {
package/jqgrid_utils.js CHANGED
@@ -27,7 +27,15 @@ module.exports = class Vanilla_website_utils
27
27
  }
28
28
 
29
29
  /**
30
+ * Add an URL from the data to a specific cell/column
30
31
  @alias module:Jqgrid_utils
32
+ @param {object} - col_model of the grid
33
+ @param {string} - name of the column what should get convert to the url
34
+ @param {string} - the used url of the data
35
+ @example
36
+ col_model = await jqu.set_link(col_model,'av0_code','url_code','target="blank"');
37
+ @result
38
+ * https://foo.bar.com/av0_code/bar
31
39
  */
32
40
  async set_link(col_model, edit_field, url ,attr='')
33
41
  {
package/package.json CHANGED
@@ -29,5 +29,5 @@
29
29
  {
30
30
  "test": "echo \"Error: no test specified\" && exit 1"
31
31
  },
32
- "version": "1.2.14"
32
+ "version": "1.2.15"
33
33
  }