@cdmx/wappler_ag_grid 0.0.5 → 0.0.7

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.
Files changed (2) hide show
  1. package/dmx-ag-grid.js +2 -2
  2. package/package.json +1 -1
package/dmx-ag-grid.js CHANGED
@@ -106,7 +106,7 @@ dmx.Component('ag-grid', {
106
106
  let exportToCSV = this.props.exportToCSV;
107
107
 
108
108
 
109
- this.$node.innerHTML = `<div id=${gridId +'-grid'}></div>`
109
+ this.$node.innerHTML = `<div id=${gridId}-grid class="ag-theme-alpine"></div>`;
110
110
  if (!rowData || rowData.length === 0) {
111
111
  console.error('No row data provided.');
112
112
  return;
@@ -355,7 +355,7 @@ const cstyles = this.props.cstyles
355
355
  localeText: this.props.localeText
356
356
  };
357
357
 
358
- const gridDiv = document.querySelector('.ag-theme-alpine');
358
+ const gridDiv = document.getElementById(gridId+'-grid');
359
359
 
360
360
  if (!gridDiv) {
361
361
  console.error(`Grid container element with ID '${gridId}' not found.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation",
6
6
  "license": "MIT",