@cdmx/wappler_ag_grid 1.1.9 → 1.2.0
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 +34 -0
- package/dmx-ag-grid.js +2 -1
- package/package.json +1 -1
|
@@ -2504,6 +2504,40 @@
|
|
|
2504
2504
|
"allowedOn": {
|
|
2505
2505
|
"dmx-ag-grid": true
|
|
2506
2506
|
}
|
|
2507
|
+
},
|
|
2508
|
+
{
|
|
2509
|
+
"name": "dmx-ag-grid-export-filename",
|
|
2510
|
+
"attributeStartsWith": "dmx-bind",
|
|
2511
|
+
"attribute": "export_csv_filename",
|
|
2512
|
+
"title": "Export CSV Filename",
|
|
2513
|
+
"type": "boolean",
|
|
2514
|
+
"display": "fieldset",
|
|
2515
|
+
"icon": "fa fa-lg fa-chevron-right",
|
|
2516
|
+
"groupTitle": "Grid Config",
|
|
2517
|
+
"groupIcon": "fa fa-lg fa-cubes",
|
|
2518
|
+
"defaultValue": false,
|
|
2519
|
+
"show": [
|
|
2520
|
+
"exportCsvFilename"
|
|
2521
|
+
],
|
|
2522
|
+
"noChangeOnHide": true,
|
|
2523
|
+
"groupEnabler": true,
|
|
2524
|
+
"children": [
|
|
2525
|
+
{
|
|
2526
|
+
"name": "exportCsvFilename",
|
|
2527
|
+
"attributeStartsWith": "dmx-bind",
|
|
2528
|
+
"attribute": "export_csv_filename",
|
|
2529
|
+
"isValue": true,
|
|
2530
|
+
"dataBindings": true,
|
|
2531
|
+
"title": "CSV Filename",
|
|
2532
|
+
"type": "text",
|
|
2533
|
+
"help": "Export CSV filename.",
|
|
2534
|
+
"defaultValue": "export.csv",
|
|
2535
|
+
"initDisplay": "none"
|
|
2536
|
+
}
|
|
2537
|
+
],
|
|
2538
|
+
"allowedOn": {
|
|
2539
|
+
"dmx-ag-grid": true
|
|
2540
|
+
}
|
|
2507
2541
|
}
|
|
2508
2542
|
],
|
|
2509
2543
|
"events": [
|
package/dmx-ag-grid.js
CHANGED
|
@@ -60,6 +60,7 @@ dmx.Component('ag-grid', {
|
|
|
60
60
|
floating_filter: { type: Boolean, default: true },
|
|
61
61
|
column_hover_highlight: { type: Boolean, default: true },
|
|
62
62
|
export_to_csv: { type: Boolean, default: true },
|
|
63
|
+
export_csv_filename: { type: String, default: 'export.csv' },
|
|
63
64
|
fixed_header: { type: Boolean, default: false },
|
|
64
65
|
topbar_class: { type: String, default: 'topbar' },
|
|
65
66
|
fixed_header_offset: { type: Number, default: 100 },
|
|
@@ -1488,7 +1489,7 @@ dmx.Component('ag-grid', {
|
|
|
1488
1489
|
(column) => !excludedColumnIds.includes(column.colId)
|
|
1489
1490
|
).map((column) => column.field);
|
|
1490
1491
|
const params = {
|
|
1491
|
-
fileName:
|
|
1492
|
+
fileName: options.export_csv_filename,
|
|
1492
1493
|
allColumns: true,
|
|
1493
1494
|
columnKeys: fieldsToExport,
|
|
1494
1495
|
processCellCallback: function (params) {
|