@cdmx/wappler_ag_grid 0.1.8 → 0.1.9
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 +0 -24
- package/package.json +1 -1
package/dmx-ag-grid.js
CHANGED
|
@@ -115,30 +115,11 @@ dmx.Component('ag-grid', {
|
|
|
115
115
|
let columnDefs = [];
|
|
116
116
|
let exportToCSV = this.props.exportToCSV;
|
|
117
117
|
|
|
118
|
-
|
|
119
118
|
this.$node.innerHTML = `<div id=${gridId}-grid class="${grid_theme}"></div>`;
|
|
120
119
|
if (!rowData || rowData.length === 0) {
|
|
121
120
|
console.error('No row data provided.');
|
|
122
121
|
return;
|
|
123
122
|
}
|
|
124
|
-
// function formatValue(value, key, dataType, timezone) {
|
|
125
|
-
// params = {"value":value}
|
|
126
|
-
// if (dataType === 'number') {
|
|
127
|
-
// if (/(amount|amt)$/.test(key)) {
|
|
128
|
-
// return Number(value).toLocaleString("en-US", {
|
|
129
|
-
// minimumFractionDigits: 2,
|
|
130
|
-
// maximumFractionDigits: 2,
|
|
131
|
-
// });
|
|
132
|
-
// } else {
|
|
133
|
-
// return blankOrNullValueFormatter(params);
|
|
134
|
-
// }
|
|
135
|
-
// } else if (dataType === 'date') {
|
|
136
|
-
// return formatTime(params, timezone);
|
|
137
|
-
// }
|
|
138
|
-
// else {
|
|
139
|
-
// return blankOrNullValueFormatter(params);
|
|
140
|
-
// }
|
|
141
|
-
// }
|
|
142
123
|
window.cellClickEvent = (columnName, value, idValue) => {
|
|
143
124
|
this.set('fields', {"field": columnName, "data": value});
|
|
144
125
|
this.set('id', idValue);
|
|
@@ -606,11 +587,6 @@ dmx.Component('ag-grid', {
|
|
|
606
587
|
|
|
607
588
|
update: function (props) {
|
|
608
589
|
if (!dmx.equal(this.props.data, props.data)) {
|
|
609
|
-
this.set("id", {
|
|
610
|
-
status: 0,
|
|
611
|
-
message: 'tedt',
|
|
612
|
-
response: null
|
|
613
|
-
})
|
|
614
590
|
this.refreshGrid();
|
|
615
591
|
}
|
|
616
592
|
},
|