@cdmx/wappler_ag_grid 0.5.7 → 0.5.8
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/app_connect/components.hjson +8 -0
- package/dmx-ag-grid.js +6 -1
- package/package.json +1 -1
|
@@ -438,6 +438,14 @@
|
|
|
438
438
|
"defaultValue": false,
|
|
439
439
|
"help": "Hides the ID Field in Grid"
|
|
440
440
|
},
|
|
441
|
+
{
|
|
442
|
+
"name": "numericColumnAlign",
|
|
443
|
+
"attribute": "dmx-bind:numeric_column_align",
|
|
444
|
+
"title": "Right Align Numeric Columns",
|
|
445
|
+
"type": "boolean",
|
|
446
|
+
"defaultValue": false,
|
|
447
|
+
"help": "Align numeric columns to the right."
|
|
448
|
+
},
|
|
441
449
|
{
|
|
442
450
|
"name": "rowClickEvent",
|
|
443
451
|
"attribute": "dmx-bind:row_click_event",
|
package/dmx-ag-grid.js
CHANGED
|
@@ -38,6 +38,7 @@ dmx.Component('ag-grid', {
|
|
|
38
38
|
suppress_scroll_on_new_data: { type: Boolean, default: false },
|
|
39
39
|
suppress_property_names_check: { type: Boolean, default: false },
|
|
40
40
|
hide_id_field: { type: Boolean, default: false },
|
|
41
|
+
numeric_column_align: { type: Boolean, default: false },
|
|
41
42
|
enable_rtl: { type: Boolean, default: false },
|
|
42
43
|
locale_text: { type: String, default: null },
|
|
43
44
|
date_locale: { type: String, default: 'en-IN' },
|
|
@@ -537,9 +538,12 @@ dmx.Component('ag-grid', {
|
|
|
537
538
|
let minWidth;
|
|
538
539
|
let hide;
|
|
539
540
|
let colId;
|
|
540
|
-
|
|
541
|
+
|
|
541
542
|
if (dataType === 'number') {
|
|
542
543
|
filter = 'agNumberColumnFilter';
|
|
544
|
+
if (options.numeric_column_align){
|
|
545
|
+
type = 'numericColumn';
|
|
546
|
+
}
|
|
543
547
|
if (options.amount_fields && options.amount_fields.includes(key)) {
|
|
544
548
|
valueFormatter = function (params) {
|
|
545
549
|
if (params.value != null) {
|
|
@@ -695,6 +699,7 @@ dmx.Component('ag-grid', {
|
|
|
695
699
|
valueGetter: valueGetter,
|
|
696
700
|
minWidth: minWidth,
|
|
697
701
|
hide: hide,
|
|
702
|
+
type: type,
|
|
698
703
|
sortable: sortable,
|
|
699
704
|
filterValueGetter: filterValueGetter,
|
|
700
705
|
filterParams: filterParams,
|