@cdmx/wappler_ag_grid 1.5.10 → 1.5.12
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 +4 -4
- package/package.json +1 -1
package/dmx-ag-grid.js
CHANGED
|
@@ -507,6 +507,7 @@ dmx.Component('ag-grid', {
|
|
|
507
507
|
const container = document.createElement('div');
|
|
508
508
|
container.style.display = 'flex';
|
|
509
509
|
container.style.flexWrap = 'wrap';
|
|
510
|
+
container.style.paddingTop = '3px';
|
|
510
511
|
buttons.forEach((buttonConfig) => {
|
|
511
512
|
const button = document.createElement('button');
|
|
512
513
|
button.classList.add('btn');
|
|
@@ -515,7 +516,7 @@ dmx.Component('ag-grid', {
|
|
|
515
516
|
button.setAttribute('data-toggle', 'tooltip');
|
|
516
517
|
// Call a function to get the dynamic tooltip content
|
|
517
518
|
if (buttonConfig.tooltip.endsWith('()')) {
|
|
518
|
-
const tooltipFunction = buttonConfig.tooltip.slice(0, -2);
|
|
519
|
+
const tooltipFunction = buttonConfig.tooltip.slice(0, -2);
|
|
519
520
|
const tooltipText = window[tooltipFunction](params.data)
|
|
520
521
|
button.setAttribute('title', tooltipText);
|
|
521
522
|
} else {
|
|
@@ -620,9 +621,9 @@ dmx.Component('ag-grid', {
|
|
|
620
621
|
|
|
621
622
|
for (let i = 0; i < operators.length; i++) {
|
|
622
623
|
if (operators[i] === '||') {
|
|
623
|
-
finalResult = finalResult || results[i];
|
|
624
|
+
finalResult = finalResult || results[i + 1];
|
|
624
625
|
} else if (operators[i] === '&&') {
|
|
625
|
-
finalResult = finalResult && results[i];
|
|
626
|
+
finalResult = finalResult && results[i + 1];
|
|
626
627
|
}
|
|
627
628
|
}
|
|
628
629
|
return finalResult;
|
|
@@ -1330,7 +1331,6 @@ dmx.Component('ag-grid', {
|
|
|
1330
1331
|
suppressPropertyNamesCheck: this.props.suppress_property_names_check,
|
|
1331
1332
|
suppressRowDeselection: this.props.suppress_row_deselection,
|
|
1332
1333
|
columnHoverHighlight: this.props.column_hover_highlight,
|
|
1333
|
-
getRowId: (params) => params.data.id,
|
|
1334
1334
|
onFilterModified: function (params) {
|
|
1335
1335
|
const columnApi = params.columnApi.api;
|
|
1336
1336
|
columnApi.hideOverlay();
|