@cdmx/wappler_ag_grid 0.3.9 → 0.4.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.
@@ -58,6 +58,14 @@
58
58
  "required": true,
59
59
  "help": "Enter Data Source"
60
60
  },
61
+ {
62
+ "name": "gridNoLoad",
63
+ "hasAttribute": "noload",
64
+ "title": "No Auto Load",
65
+ "type": "boolean",
66
+ "defaultValue": "",
67
+ "initValue": true
68
+ },
61
69
  {
62
70
  "name": "grid_theme",
63
71
  "attribute": "grid_theme",
@@ -962,21 +970,21 @@
962
970
  ],
963
971
  actionsScheme: [
964
972
  {
965
- addTitle: 'Reload Grid',
966
- title : 'Reload Grid',
967
- name : 'reloadGrid',
973
+ addTitle: 'Load',
974
+ title : 'Load',
975
+ name : 'loadGrid',
968
976
  icon : 'fa fa-lg fa-play',
969
977
  state : 'opened',
970
- help: 'Reload the AG Grid',
978
+ help: 'Load the AG Grid',
971
979
  properties : []
972
980
  },
973
981
  {
974
- addTitle: 'Update Grid',
975
- title : 'Update Grid',
976
- name : 'updateGrid',
977
- icon : 'fa fa-lg fa-play',
982
+ addTitle: 'Reload',
983
+ title : 'Reload',
984
+ name : 'reloadGrid',
985
+ icon : 'fa fa-lg fa-sync',
978
986
  state : 'opened',
979
- help: 'Update the AG Grid',
987
+ help: 'Reload the AG Grid',
980
988
  properties : []
981
989
  }
982
990
  ],
package/dmx-ag-grid.js CHANGED
@@ -8,6 +8,7 @@ dmx.Component('ag-grid', {
8
8
 
9
9
  attributes: {
10
10
  id: { default: null },
11
+ noload: { type: Boolean, default: false },
11
12
  grid_theme: { type: String, default: 'ag-theme-alpine' },
12
13
  column_defs: { type: Array, default: [] },
13
14
  cstyles: { type: Array, default: [] },
@@ -82,10 +83,9 @@ dmx.Component('ag-grid', {
82
83
  this.refreshGrid();
83
84
  }, this);
84
85
  },
85
- updateGrid: function () {
86
+ loadGrid: function () {
86
87
  dmx.nextTick(function() {
87
- console.log(this.data.gridInstance)
88
- // this.updateGrid();
88
+ this.refreshGrid();
89
89
  }, this);
90
90
  }
91
91
  },
@@ -783,7 +783,7 @@ dmx.Component('ag-grid', {
783
783
 
784
784
  update: function (props) {
785
785
  this.set('count', this.props.data.length);
786
- if (!dmx.equal(this.props.data, props.data)) {
786
+ if (!dmx.equal(this.props.data, props.data) && !this.props.noload) {
787
787
  let gridInstance = this.refreshGrid();
788
788
  this.set('gridInstance', gridInstance);
789
789
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "0.3.9",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation",
6
6
  "license": "MIT",