jqgrid_utils 1.27.1 → 1.27.3
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/.github/workflows/npm.yml +1 -3
- package/README.md +44 -7
- package/dist/.hidden +0 -0
- package/dist/jqgrid_utils.js +1728 -0
- package/jqgrid_utils.js +4 -3
- package/make.sh +0 -2
- package/make_doc.sh +2 -0
- package/package.json +1 -1
|
@@ -2,15 +2,13 @@ name: Publish Package to npmjs
|
|
|
2
2
|
on: push
|
|
3
3
|
jobs:
|
|
4
4
|
build:
|
|
5
|
+
if: github.repository_owner == 'myridia'
|
|
5
6
|
runs-on: ubuntu-latest
|
|
6
7
|
permissions:
|
|
7
8
|
contents: read
|
|
8
9
|
id-token: write
|
|
9
|
-
if: github.repository_owner == 'myridia'
|
|
10
|
-
|
|
11
10
|
steps:
|
|
12
11
|
- uses: actions/checkout@v4
|
|
13
|
-
|
|
14
12
|
# Setup .npmrc file to publish to npm
|
|
15
13
|
- uses: actions/setup-node@v4
|
|
16
14
|
with:
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Convenient Functions for free jqGrid
|
|
|
18
18
|
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Source: https://
|
|
21
|
+
Source: https://github.com/myridia/jqgrid_utils/actions
|
|
22
22
|
|
|
23
23
|
<a name="module_Jqgrid_utils"></a>
|
|
24
24
|
|
|
@@ -42,6 +42,7 @@ A module for Jqgrid_utils
|
|
|
42
42
|
* [module.exports#get_filled_cell_table_data(_grid, fields)](#exp_module_Jqgrid_utils--module.exports+get_filled_cell_table_data) ⇒ <code>array</code> ⏏
|
|
43
43
|
* [module.exports#get_filled_cell_data(_grid, fields)](#exp_module_Jqgrid_utils--module.exports+get_filled_cell_data) ⇒ <code>object</code> ⏏
|
|
44
44
|
* [module.exports#set_link(col_model, edit_field, url)](#exp_module_Jqgrid_utils--module.exports+set_link) ⇒ <code>object</code> ⏏
|
|
45
|
+
* [module.exports#hide_all_columns_except(col_model, fields)](#exp_module_Jqgrid_utils--module.exports+hide_all_columns_except) ⇒ <code>object</code> ⏏
|
|
45
46
|
* [module.exports#hide_column(col_model, field)](#exp_module_Jqgrid_utils--module.exports+hide_column) ⇒ <code>object</code> ⏏
|
|
46
47
|
* [module.exports#s_grid_set_caption(_grid, data)](#exp_module_Jqgrid_utils--module.exports+s_grid_set_caption) ⏏
|
|
47
48
|
* [module.exports#grid_set_caption(_grid, data)](#exp_module_Jqgrid_utils--module.exports+grid_set_caption) ⏏
|
|
@@ -58,6 +59,7 @@ A module for Jqgrid_utils
|
|
|
58
59
|
* [module.exports#s_hide_del_icon()](#exp_module_Jqgrid_utils--module.exports+s_hide_del_icon) ⏏
|
|
59
60
|
* [module.exports#hide_del_icon()](#exp_module_Jqgrid_utils--module.exports+hide_del_icon) ⏏
|
|
60
61
|
* [module.exports#add_link_details_csv(col_model, url, edit_field, attr, keys, format, seperator)](#exp_module_Jqgrid_utils--module.exports+add_link_details_csv) ⏏
|
|
62
|
+
* [module.exports#set_styles(obj, style_column)](#exp_module_Jqgrid_utils--module.exports+set_styles) ⏏
|
|
61
63
|
* [module.exports#add_link_details(col_model, url, edit_field, attr, keys)](#exp_module_Jqgrid_utils--module.exports+add_link_details) ⏏
|
|
62
64
|
* [module.exports#add_link_details_separator(col_model, url, edit_field, attr, keys)](#exp_module_Jqgrid_utils--module.exports+add_link_details_separator) ⏏
|
|
63
65
|
* [module.exports#add_link_separator(col_model, url, edit_field, fields)](#exp_module_Jqgrid_utils--module.exports+add_link_separator) ⏏
|
|
@@ -392,6 +394,23 @@ var jqu = new Jqgrid_utils();
|
|
|
392
394
|
let _data = await jqu.get_filled_cell_data(this,["P-","bulk","wholesale"]);
|
|
393
395
|
console.log(_data);
|
|
394
396
|
```
|
|
397
|
+
<a name="exp_module_Jqgrid_utils--module.exports+hide_all_columns_except"></a>
|
|
398
|
+
|
|
399
|
+
### module.exports#hide\_all\_columns\_except(col_model, fields) ⇒ <code>object</code> ⏏
|
|
400
|
+
Hide all columns execpt column
|
|
401
|
+
|
|
402
|
+
**Kind**: Exported function
|
|
403
|
+
**Returns**: <code>object</code> - col_model
|
|
404
|
+
|
|
405
|
+
| Param | Type | Description |
|
|
406
|
+
| --- | --- | --- |
|
|
407
|
+
| col_model | <code>object</code> | col_model of the grid |
|
|
408
|
+
| fields | <code>array</code> | array of names to not to hide |
|
|
409
|
+
|
|
410
|
+
**Example**
|
|
411
|
+
```js
|
|
412
|
+
col_model = await jqu.hide_all_columns_except(col_model,['supplier','customer']);
|
|
413
|
+
```
|
|
395
414
|
<a name="exp_module_Jqgrid_utils--module.exports+hide_column"></a>
|
|
396
415
|
|
|
397
416
|
### module.exports#hide\_column(col_model, field) ⇒ <code>object</code> ⏏
|
|
@@ -407,11 +426,8 @@ Hide a col_model column before load the grid
|
|
|
407
426
|
|
|
408
427
|
**Example**
|
|
409
428
|
```js
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
col_model = await jqu.hide_column(col_model,'wholesale');
|
|
413
|
-
col_model = await jqu.hide_column(col_model,'wholesale_formula');
|
|
414
|
-
}
|
|
429
|
+
col_model = await jqu.hide_column(col_model,'wholesale');
|
|
430
|
+
col_model = await jqu.hide_column(col_model,'wholesale_formula');
|
|
415
431
|
```
|
|
416
432
|
<a name="exp_module_Jqgrid_utils--module.exports+s_grid_set_caption"></a>
|
|
417
433
|
|
|
@@ -686,6 +702,25 @@ Convert a cell into a link/url with data from another cell and spit the value by
|
|
|
686
702
|
var jqu = new Jqgrid_utils();
|
|
687
703
|
col_model = await jqu.add_link_details_csv(col_model, host + '/html/report.html' , 'tags','target="_blank"',{"tags":"tags"},',');
|
|
688
704
|
```
|
|
705
|
+
<a name="exp_module_Jqgrid_utils--module.exports+set_styles"></a>
|
|
706
|
+
|
|
707
|
+
### module.exports#set\_styles(obj, style_column) ⏏
|
|
708
|
+
Set styles to individual cells, what are defined in a dedicated column
|
|
709
|
+
|
|
710
|
+
**Kind**: Exported function
|
|
711
|
+
|
|
712
|
+
| Param | Type | Default | Description |
|
|
713
|
+
| --- | --- | --- | --- |
|
|
714
|
+
| obj | <code>object</code> | | grid object |
|
|
715
|
+
| style_column | <code>string</code> | <code>"styles"</code> | name of the column what includes the style values what need to be in a strinify json format |
|
|
716
|
+
|
|
717
|
+
**Example**
|
|
718
|
+
```js
|
|
719
|
+
var jqu = new Jqgrid_utils();
|
|
720
|
+
loadComplete: async function() {
|
|
721
|
+
await jqu.set_styles(this);
|
|
722
|
+
},
|
|
723
|
+
```
|
|
689
724
|
<a name="exp_module_Jqgrid_utils--module.exports+add_link_details"></a>
|
|
690
725
|
|
|
691
726
|
### module.exports#add\_link\_details(col_model, url, edit_field, attr, keys) ⏏
|
|
@@ -752,6 +787,8 @@ var jqu = new Jqgrid_utils();
|
|
|
752
787
|
'fields':{'style':'style'}
|
|
753
788
|
}
|
|
754
789
|
]);
|
|
790
|
+
//other example
|
|
791
|
+
col_model = await jqu.add_link_separator(col_model, 'https://wiki.salamander-jewelry.net/index.php/grid_loss' , 'e',[{'field':'e'}],'target="_blank"');
|
|
755
792
|
```
|
|
756
793
|
<a name="exp_module_Jqgrid_utils--module.exports+__cell_format"></a>
|
|
757
794
|
|
|
@@ -814,7 +851,7 @@ await jqu.subgrid(_id, false, data_url, col_model2,'Order Lines for ' + row_data
|
|
|
814
851
|
|
|
815
852
|
**Example**
|
|
816
853
|
```js
|
|
817
|
-
col_model = await jqu.add_image(col_model,
|
|
854
|
+
col_model = await jqu.add_image(col_model, image_field, 60, false);
|
|
818
855
|
```
|
|
819
856
|
<a name="exp_module_Jqgrid_utils--module.exports+set_filter"></a>
|
|
820
857
|
|
package/dist/.hidden
ADDED
|
File without changes
|