@cdmx/wappler_ag_grid 0.8.0 → 0.8.1

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.
@@ -1154,6 +1154,7 @@
1154
1154
  "show": [
1155
1155
  "enableActions",
1156
1156
  "pinActions",
1157
+ "ActionsColumnPosition",
1157
1158
  "editActionBtn",
1158
1159
  "editActionTitle",
1159
1160
  "editActionTooltip",
@@ -1190,6 +1191,18 @@
1190
1191
  "defaultValue": true,
1191
1192
  "help": "Pin Actions Column"
1192
1193
  },
1194
+ {
1195
+ "name": "ActionsColumnPosition",
1196
+ "attribute": "actions_column_position",
1197
+ "title": "Actions Column Position",
1198
+ "type": "droplist",
1199
+ "defaultValue": 'right',
1200
+ "values": [
1201
+ {title: 'Right', value: 'right'},
1202
+ {title: 'Left', value: 'left'}
1203
+ ],
1204
+ "help": "Actions Column Position"
1205
+ },
1193
1206
  {
1194
1207
  "name": "editActionBtn",
1195
1208
  "attribute": "dmx-bind:edit_action_btn",
package/dmx-ag-grid.js CHANGED
@@ -65,7 +65,8 @@ dmx.Component('ag-grid', {
65
65
  row_checkbox_event: {type: Boolean, default: false },
66
66
  row_status_event: {type: Boolean, default: false },
67
67
  enable_actions: {type: Boolean, default: false },
68
- pin_actions: {type: String, default: 'right' },
68
+ actions_column_position: {type: String, default: 'right' },
69
+ pin_actions: { type: Boolean, default: true },
69
70
  edit_action_btn: { type: Boolean, default: false },
70
71
  edit_action_title: {type: String, default: '' },
71
72
  edit_action_tooltip: {type: String, default: 'Edit' },
@@ -831,7 +832,7 @@ dmx.Component('ag-grid', {
831
832
  filter: null,
832
833
  sortable: false,
833
834
  cellRenderer: actionsRenderer,
834
- pinned: options.pin_actions,
835
+ pinned: (options.pin_actions ? options.actions_column_position: undefined),
835
836
  cellRendererParams: {
836
837
  buttons: [],
837
838
  },
@@ -877,8 +878,7 @@ dmx.Component('ag-grid', {
877
878
  },
878
879
  });
879
880
  }
880
-
881
- columnDefs.push(actionsColumn);
881
+ options.actions_column_position=='right' ? columnDefs.push(actionsColumn):columnDefs.unshift(actionsColumn);
882
882
  }
883
883
  if (options.locale_text == 'HE') {
884
884
  localeText = AG_GRID_LOCALE_HE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",