@cdmx/wappler_ag_grid 1.0.9 → 1.1.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.
Files changed (2) hide show
  1. package/dmx-ag-grid.js +15 -0
  2. package/package.json +1 -1
package/dmx-ag-grid.js CHANGED
@@ -1067,6 +1067,21 @@ dmx.Component('ag-grid', {
1067
1067
  },
1068
1068
  });
1069
1069
  }
1070
+
1071
+ if (options.delete_action_btn) {
1072
+ actionsColumn.cellRendererParams.buttons.push({
1073
+ action: options.delete_action_title,
1074
+ classNames: options.delete_action_btn_class,
1075
+ tooltip: options.delete_action_tooltip,
1076
+ icon: options.delete_action_icon_class,
1077
+ onClick: (rowData) => {
1078
+ this.set('data', rowData);
1079
+ this.set('id', rowData.id);
1080
+ this.dispatchEvent('row_action_delete');
1081
+ },
1082
+ });
1083
+ }
1084
+
1070
1085
  if (options.enable_custom_action_btns) {
1071
1086
  for (let i = 1; i <= 10; i++) {
1072
1087
  const buttonActionKey = `button${i}_action_btn`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",