jqgrid_utils 1.2.5 → 1.2.6

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
@@ -75,7 +75,7 @@ A module for Vanilla_website_utils
75
75
  * [module.exports#add_link_details()](#exp_module_Vanilla_website_utils--module.exports+add_link_details) ⏏
76
76
  * [module.exports#add_link_details_separator()](#exp_module_Vanilla_website_utils--module.exports+add_link_details_separator) ⏏
77
77
  * [module.exports#__cell_format()](#exp_module_Vanilla_website_utils--module.exports+__cell_format) ⏏
78
- * [module.exports#subgrid(_id, id, data_url, col_model)](#exp_module_Vanilla_website_utils--module.exports+subgrid) ⏏
78
+ * [module.exports#subgrid(_id, id, data_url, col_model, caption)](#exp_module_Vanilla_website_utils--module.exports+subgrid) ⏏
79
79
  * [module.exports#add_image(col_model, edit_field, size, link)](#exp_module_Vanilla_website_utils--module.exports+add_image) ⏏
80
80
 
81
81
  <a name="exp_module_Vanilla_website_utils--module.exports+set_link"></a>
@@ -93,9 +93,9 @@ A module for Vanilla_website_utils
93
93
 
94
94
  | Param | Type | Default | Description |
95
95
  | --- | --- | --- | --- |
96
- | col_model | <code>object</code> | | col_model for the grid |
97
- | page | <code>string</code> | <code>false</code> | page |
98
- | grid | <code>object</code> | <code>false</code> | grid |
96
+ | col_model | <code>object</code> | | the col_model of the grid |
97
+ | page | <code>string</code> | <code>false</code> | the name of the page(optional) |
98
+ | grid | <code>object</code> | <code>false</code> | the grid objec(optional) |
99
99
 
100
100
  **Example**
101
101
  ```js
@@ -139,7 +139,7 @@ col_model = await jqu.resize_saved_cell_width(col_model);
139
139
  **Kind**: Exported function
140
140
  **Example**
141
141
  ```js
142
- // example: col_model = await jqu.add_link_details(col_model,'http://foo.bar'' , 'target_field','target="_blank"',{"key":"field1","key":"field2"});
142
+ example: col_model = await jqu.add_link_details(col_model,'http://foo.bar'' , 'target_field','target="_blank"',{"key":"field1","key":"field2"});
143
143
  ```
144
144
  <a name="exp_module_Vanilla_website_utils--module.exports+add_link_details_separator"></a>
145
145
 
@@ -147,7 +147,7 @@ col_model = await jqu.resize_saved_cell_width(col_model);
147
147
  **Kind**: Exported function
148
148
  **Example**
149
149
  ```js
150
- // col_model = await jqu.add_link_details_separator(col_model, 'https://foo.com' , 'couchdb','target="_blank"',{"mykey":"myval"});
150
+ col_model = await jqu.add_link_details_separator(col_model, 'https://foo.com' , 'couchdb','target="_blank"',{"mykey":"myval"});
151
151
  ```
152
152
  <a name="exp_module_Vanilla_website_utils--module.exports+__cell_format"></a>
153
153
 
@@ -155,15 +155,16 @@ col_model = await jqu.resize_saved_cell_width(col_model);
155
155
  **Kind**: Exported function
156
156
  <a name="exp_module_Vanilla_website_utils--module.exports+subgrid"></a>
157
157
 
158
- ### module.exports#subgrid(_id, id, data_url, col_model) ⏏
158
+ ### module.exports#subgrid(_id, id, data_url, col_model, caption) ⏏
159
159
  **Kind**: Exported function
160
160
 
161
161
  | Param | Type | Description |
162
162
  | --- | --- | --- |
163
163
  | _id | <code>string</code> | row_id |
164
164
  | id | <code>string</code> | data id |
165
- | data_url | <code>object</code> | col_model for the table |
166
- | col_model | <code>string</code> | Caption |
165
+ | data_url | <code>string</code> | url to request |
166
+ | col_model | <code>object</code> | col_model for the table |
167
+ | caption | <code>string</code> | Add to the caption of the subgrid |
167
168
 
168
169
  **Example**
169
170
  ```js
@@ -82,9 +82,9 @@ module.exports = class Vanilla_website_utils
82
82
 
83
83
  /**
84
84
  @alias module:Vanilla_website_utils
85
- @param {object} - col_model for the grid
86
- @param {string} - page
87
- @param {object} - grid
85
+ @param {object} - the col_model of the grid
86
+ @param {string} - the name of the page(optional)
87
+ @param {object} - the grid objec(optional)
88
88
  @example
89
89
  * col_model = await jqu.resize_saved_cell_width(col_model);
90
90
  */
@@ -114,9 +114,9 @@ module.exports = class Vanilla_website_utils
114
114
  @alias module:Vanilla_website_utils
115
115
  * resize_cell
116
116
  * call after resize a column
117
- @param {string} - width - the size of the resized column
118
- @param {string} - index - column number what get resized
119
- @param {string} - _page - not in use yet
117
+ @param {string} the width of the resized column
118
+ @param {string} column number what get resized
119
+ @param {string} not in use yet
120
120
  @example
121
121
  * var jqu = new Jqgrid_utils({page:'mypage'});
122
122
  * resizeStop: jqu.resize_cell,
@@ -293,7 +293,7 @@ async hide_del_icon()
293
293
  /**
294
294
  @alias module:Vanilla_website_utils
295
295
  @example
296
- // example: col_model = await jqu.add_link_details(col_model,'http://foo.bar'' , 'target_field','target="_blank"',{"key":"field1","key":"field2"});
296
+ * example: col_model = await jqu.add_link_details(col_model,'http://foo.bar'' , 'target_field','target="_blank"',{"key":"field1","key":"field2"});
297
297
  */
298
298
  async add_link_details(col_model, url, edit_field, attr = '', keys, format)
299
299
  {
@@ -365,7 +365,7 @@ async add_link_details(col_model, url, edit_field, attr = '', keys, format)
365
365
  /**
366
366
  @alias module:Vanilla_website_utils
367
367
  @example
368
- // col_model = await jqu.add_link_details_separator(col_model, 'https://foo.com' , 'couchdb','target="_blank"',{"mykey":"myval"});
368
+ * col_model = await jqu.add_link_details_separator(col_model, 'https://foo.com' , 'couchdb','target="_blank"',{"mykey":"myval"});
369
369
  */
370
370
  async add_link_details_separator(col_model, url, edit_field, attr = '', keys, format)
371
371
  {
@@ -454,8 +454,9 @@ __cell_format(cell_value, format)
454
454
  @alias module:Vanilla_website_utils
455
455
  @param {string} - row_id
456
456
  @param {string} - data id
457
+ @param {string} - url to request
457
458
  @param {object} - col_model for the table
458
- @param {string} - Caption
459
+ @param {string} - Add to the caption of the subgrid
459
460
  @example
460
461
  * let data_url = api + '/phone_detail?f=data&_id=';
461
462
  * let col_model_url = api + '/phone_detail?f=col_model';
package/jqgrid_utils.js CHANGED
@@ -81,9 +81,9 @@ module.exports = class Vanilla_website_utils
81
81
 
82
82
  /**
83
83
  @alias module:Vanilla_website_utils
84
- @param {object} - col_model for the grid
85
- @param {string} - page
86
- @param {object} - grid
84
+ @param {object} - the col_model of the grid
85
+ @param {string} - the name of the page(optional)
86
+ @param {object} - the grid objec(optional)
87
87
  @example
88
88
  * col_model = await jqu.resize_saved_cell_width(col_model);
89
89
  */
@@ -113,9 +113,9 @@ module.exports = class Vanilla_website_utils
113
113
  @alias module:Vanilla_website_utils
114
114
  * resize_cell
115
115
  * call after resize a column
116
- @param {string} - width - the size of the resized column
117
- @param {string} - index - column number what get resized
118
- @param {string} - _page - not in use yet
116
+ @param {string} the width of the resized column
117
+ @param {string} column number what get resized
118
+ @param {string} not in use yet
119
119
  @example
120
120
  * var jqu = new Jqgrid_utils({page:'mypage'});
121
121
  * resizeStop: jqu.resize_cell,
@@ -292,7 +292,7 @@ async hide_del_icon()
292
292
  /**
293
293
  @alias module:Vanilla_website_utils
294
294
  @example
295
- // example: col_model = await jqu.add_link_details(col_model,'http://foo.bar'' , 'target_field','target="_blank"',{"key":"field1","key":"field2"});
295
+ * example: col_model = await jqu.add_link_details(col_model,'http://foo.bar'' , 'target_field','target="_blank"',{"key":"field1","key":"field2"});
296
296
  */
297
297
  async add_link_details(col_model, url, edit_field, attr = '', keys, format)
298
298
  {
@@ -364,7 +364,7 @@ async add_link_details(col_model, url, edit_field, attr = '', keys, format)
364
364
  /**
365
365
  @alias module:Vanilla_website_utils
366
366
  @example
367
- // col_model = await jqu.add_link_details_separator(col_model, 'https://foo.com' , 'couchdb','target="_blank"',{"mykey":"myval"});
367
+ * col_model = await jqu.add_link_details_separator(col_model, 'https://foo.com' , 'couchdb','target="_blank"',{"mykey":"myval"});
368
368
  */
369
369
  async add_link_details_separator(col_model, url, edit_field, attr = '', keys, format)
370
370
  {
@@ -453,8 +453,9 @@ __cell_format(cell_value, format)
453
453
  @alias module:Vanilla_website_utils
454
454
  @param {string} - row_id
455
455
  @param {string} - data id
456
+ @param {string} - url to request
456
457
  @param {object} - col_model for the table
457
- @param {string} - Caption
458
+ @param {string} - Add to the caption of the subgrid
458
459
  @example
459
460
  * let data_url = api + '/phone_detail?f=data&_id=';
460
461
  * let col_model_url = api + '/phone_detail?f=col_model';
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.5"
32
+ "version": "1.2.6"
33
33
  }