@cdmx/wappler_ag_grid 2.0.6 → 2.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.
- package/dmx-ag-grid.js +3 -3
- package/package.json +1 -1
package/dmx-ag-grid.js
CHANGED
|
@@ -489,10 +489,10 @@ dmx.Component('ag-grid', {
|
|
|
489
489
|
let exportToPDF = this.props.export_to_pdf;
|
|
490
490
|
let cellRenderer;
|
|
491
491
|
|
|
492
|
-
|
|
493
|
-
this.$node.innerHTML = `<div id=${options.id}-grid class="${
|
|
492
|
+
const gridThemeClass = options.dark_mode ? `${options.grid_theme}-dark` : options.grid_theme;
|
|
493
|
+
this.$node.innerHTML = `<div id=${options.id}-grid class="${gridThemeClass}"></div>`;
|
|
494
494
|
|
|
495
|
-
// Apply theme mode using
|
|
495
|
+
// Apply theme mode using data attribute
|
|
496
496
|
const themeContainer = this.$node.querySelector(`#${options.id}-grid`);
|
|
497
497
|
if (themeContainer) {
|
|
498
498
|
themeContainer.dataset.agThemeMode = options.dark_mode ? 'dark' : 'light';
|
package/package.json
CHANGED