@cdmx/wappler_ag_grid 0.7.9 → 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.
- package/app_connect/components.hjson +20 -5
- package/dmx-ag-grid.js +4 -4
- package/package.json +1 -1
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
"attribute": "row_height",
|
|
341
341
|
"title": "Row Height",
|
|
342
342
|
"type": "number",
|
|
343
|
-
"defaultValue":
|
|
343
|
+
"defaultValue": null,
|
|
344
344
|
"help": "Height of each row in pixels"
|
|
345
345
|
},
|
|
346
346
|
{
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
"attribute": "header_height",
|
|
349
349
|
"title": "Header Height",
|
|
350
350
|
"type": "number",
|
|
351
|
-
"defaultValue":
|
|
351
|
+
"defaultValue": null,
|
|
352
352
|
"help": "Height of the header row in pixels"
|
|
353
353
|
},
|
|
354
354
|
{
|
|
@@ -1046,7 +1046,7 @@
|
|
|
1046
1046
|
],
|
|
1047
1047
|
"noChangeOnHide": true,
|
|
1048
1048
|
"groupEnabler": true,
|
|
1049
|
-
"help": "Configure
|
|
1049
|
+
"help": "Configure Compact View for the grid"
|
|
1050
1050
|
"children": [
|
|
1051
1051
|
{
|
|
1052
1052
|
"name": "compactView",
|
|
@@ -1062,7 +1062,8 @@
|
|
|
1062
1062
|
"title": "Grid Size",
|
|
1063
1063
|
"type": "number",
|
|
1064
1064
|
"defaultValue": 3,
|
|
1065
|
-
"initDisplay": "none"
|
|
1065
|
+
"initDisplay": "none",
|
|
1066
|
+
"help": "Configure padding and spacing for the grid, value in pixels"
|
|
1066
1067
|
},
|
|
1067
1068
|
{
|
|
1068
1069
|
"name": "compactViewItemHeight",
|
|
@@ -1070,7 +1071,8 @@
|
|
|
1070
1071
|
"title": "Grid Item Height",
|
|
1071
1072
|
"type": "number",
|
|
1072
1073
|
"defaultValue": 20,
|
|
1073
|
-
"initDisplay": "none"
|
|
1074
|
+
"initDisplay": "none",
|
|
1075
|
+
"help": "Controls the height of items in UI scrolling lists such as the columns in the columns tool panel below, value in pixels"
|
|
1074
1076
|
}
|
|
1075
1077
|
]
|
|
1076
1078
|
}
|
|
@@ -1152,6 +1154,7 @@
|
|
|
1152
1154
|
"show": [
|
|
1153
1155
|
"enableActions",
|
|
1154
1156
|
"pinActions",
|
|
1157
|
+
"ActionsColumnPosition",
|
|
1155
1158
|
"editActionBtn",
|
|
1156
1159
|
"editActionTitle",
|
|
1157
1160
|
"editActionTooltip",
|
|
@@ -1188,6 +1191,18 @@
|
|
|
1188
1191
|
"defaultValue": true,
|
|
1189
1192
|
"help": "Pin Actions Column"
|
|
1190
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
|
+
},
|
|
1191
1206
|
{
|
|
1192
1207
|
"name": "editActionBtn",
|
|
1193
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
|
-
|
|
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
|