jqgrid_utils 1.2.12 → 1.2.16
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 +25 -2
- package/dist/jqgrid_utils.js +9 -1
- package/jqgrid_utils.js +9 -1
- package/package.json +1 -1
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) ⇒ <code>string</code> ⏏
|
|
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) ⏏
|
|
@@ -55,11 +55,26 @@ A module for Jqgrid_utils
|
|
|
55
55
|
* [module.exports#subgrid(_id, id, data_url, col_model, caption)](#exp_module_Jqgrid_utils--module.exports+subgrid) ⏏
|
|
56
56
|
* [module.exports#add_image(col_model, edit_field, size, link)](#exp_module_Jqgrid_utils--module.exports+add_image) ⏏
|
|
57
57
|
* [module.exports#set_filter(grid, data, fx, append_to)](#exp_module_Jqgrid_utils--module.exports+set_filter) ⏏
|
|
58
|
+
* [module.exports#_filter()](#exp_module_Jqgrid_utils--module.exports+_filter) ⏏
|
|
58
59
|
|
|
59
60
|
<a name="exp_module_Jqgrid_utils--module.exports+set_link"></a>
|
|
60
61
|
|
|
61
|
-
### module.exports#set\_link() ⏏
|
|
62
|
+
### module.exports#set\_link(col_model, edit_field, url) ⇒ <code>string</code> ⏏
|
|
63
|
+
Add an URL from the data to a specific cell/column
|
|
64
|
+
|
|
62
65
|
**Kind**: Exported function
|
|
66
|
+
**Returns**: <code>string</code> - 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
|
+
```
|
|
63
78
|
<a name="exp_module_Jqgrid_utils--module.exports+grid_set_caption"></a>
|
|
64
79
|
|
|
65
80
|
### module.exports#grid\_set\_caption(_grid, data) ⏏
|
|
@@ -202,6 +217,8 @@ col_model = await jqu.add_image(col_model, 'image', 60, false);
|
|
|
202
217
|
<a name="exp_module_Jqgrid_utils--module.exports+set_filter"></a>
|
|
203
218
|
|
|
204
219
|
### module.exports#set\_filter(grid, data, fx, append_to) ⏏
|
|
220
|
+
Add a filter to the website beside the grid
|
|
221
|
+
|
|
205
222
|
**Kind**: Exported function
|
|
206
223
|
|
|
207
224
|
| Param | Type | Default | Description |
|
|
@@ -223,3 +240,9 @@ gridComplete: async function(){
|
|
|
223
240
|
}
|
|
224
241
|
},
|
|
225
242
|
```
|
|
243
|
+
<a name="exp_module_Jqgrid_utils--module.exports+_filter"></a>
|
|
244
|
+
|
|
245
|
+
### module.exports#\_filter() ⏏
|
|
246
|
+
private function of set_filter
|
|
247
|
+
|
|
248
|
+
**Kind**: Exported function
|
package/dist/jqgrid_utils.js
CHANGED
|
@@ -28,7 +28,14 @@ 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
|
+
@returns {string} https://foo.bar.com/av0_code/bar
|
|
37
|
+
@example
|
|
38
|
+
col_model = await jqu.set_link(col_model,'av0_code','url_code','target="blank"');
|
|
32
39
|
*/
|
|
33
40
|
async set_link(col_model, edit_field, url ,attr='')
|
|
34
41
|
{
|
|
@@ -547,6 +554,7 @@ async add_image(col_model, edit_field, size, link=false)
|
|
|
547
554
|
|
|
548
555
|
|
|
549
556
|
/**
|
|
557
|
+
* Add a filter to the website beside the grid
|
|
550
558
|
@alias module:Jqgrid_utils
|
|
551
559
|
@param {object} - grid object or grid string name
|
|
552
560
|
@param {object} - the grid data object
|
|
@@ -609,8 +617,8 @@ async set_filter(grid, data, fx, append_to="#filter")
|
|
|
609
617
|
|
|
610
618
|
|
|
611
619
|
/**
|
|
620
|
+
* private function of set_filter
|
|
612
621
|
@alias module:Jqgrid_utils
|
|
613
|
-
private function for set_filter
|
|
614
622
|
*/
|
|
615
623
|
async _filter(grid, fx)
|
|
616
624
|
{
|
package/jqgrid_utils.js
CHANGED
|
@@ -27,7 +27,14 @@ 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
|
+
@returns {string} https://foo.bar.com/av0_code/bar
|
|
36
|
+
@example
|
|
37
|
+
col_model = await jqu.set_link(col_model,'av0_code','url_code','target="blank"');
|
|
31
38
|
*/
|
|
32
39
|
async set_link(col_model, edit_field, url ,attr='')
|
|
33
40
|
{
|
|
@@ -546,6 +553,7 @@ async add_image(col_model, edit_field, size, link=false)
|
|
|
546
553
|
|
|
547
554
|
|
|
548
555
|
/**
|
|
556
|
+
* Add a filter to the website beside the grid
|
|
549
557
|
@alias module:Jqgrid_utils
|
|
550
558
|
@param {object} - grid object or grid string name
|
|
551
559
|
@param {object} - the grid data object
|
|
@@ -608,8 +616,8 @@ async set_filter(grid, data, fx, append_to="#filter")
|
|
|
608
616
|
|
|
609
617
|
|
|
610
618
|
/**
|
|
619
|
+
* private function of set_filter
|
|
611
620
|
@alias module:Jqgrid_utils
|
|
612
|
-
private function for set_filter
|
|
613
621
|
*/
|
|
614
622
|
async _filter(grid, fx)
|
|
615
623
|
{
|
package/package.json
CHANGED