@cdmx/wappler_ag_grid 1.8.15 → 1.8.17

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.
@@ -3041,6 +3041,15 @@
3041
3041
  }
3042
3042
  ]
3043
3043
  },
3044
+ {
3045
+ addTitle: 'Destroy',
3046
+ title : 'Destroy',
3047
+ name : 'destroyGrid',
3048
+ icon : 'fa fa-lg fa-trash',
3049
+ state : 'opened',
3050
+ help: 'Destroy the AG Grid',
3051
+ properties : []
3052
+ },
3044
3053
  {
3045
3054
  addTitle: 'Export',
3046
3055
  title: 'Export',
package/dmx-ag-grid.js CHANGED
@@ -278,6 +278,12 @@ dmx.Component('ag-grid', {
278
278
  this.set('gridInstance', gridInstance);
279
279
  }, this);
280
280
  },
281
+ destroyGrid: function () {
282
+ dmx.nextTick(function() {
283
+ var gridInstance = this.get('gridInstance');
284
+ if (gridInstance) gridInstance.destroy();
285
+ }, this);
286
+ },
281
287
  exportGrid: function (Csv, Pdf) {
282
288
  // Default Csv to true if both Csv and Pdf are false
283
289
  if (!Csv && !Pdf) {
@@ -461,7 +467,7 @@ dmx.Component('ag-grid', {
461
467
  const cwidths = this.props.cwidths
462
468
  const ctypes = this.props.ctypes
463
469
  if (!this.$node || !rowData || rowData.length === 0) {
464
- console.error('No row data provided.');
470
+ console.error('No row data provided.')
465
471
  return;
466
472
  }
467
473
  let gridInstance = this.get('gridInstance') ? this.get('gridInstance') : null;
@@ -1372,7 +1378,7 @@ dmx.Component('ag-grid', {
1372
1378
  return {
1373
1379
  headerName: headerName,
1374
1380
  field: key,
1375
- filter: filter,
1381
+ filter: options.filter ? filter : null,
1376
1382
  valueFormatter: valueFormatter,
1377
1383
  valueGetter: valueGetter,
1378
1384
  minWidth: minWidth,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "1.8.15",
3
+ "version": "1.8.17",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",