@cdmx/wappler_ag_grid 1.0.3 → 1.0.5
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/README.md +22 -17
- package/app_connect/components.hjson +24 -0
- package/dmx-ag-grid.js +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,20 +47,23 @@ The overrides for the "Custom" theme can be applied in the ag-theme-custom.css f
|
|
|
47
47
|
- Fixed Horizontal Scroll Width: Fixed horizontal scroll width percentage. (Default: 80%)
|
|
48
48
|
16. **Row Height**: Height of each row in pixels. (Default: 25)
|
|
49
49
|
17. **Header Height**: Height of the header row in pixels. (Default: 30)
|
|
50
|
-
18. **
|
|
51
|
-
19. **
|
|
52
|
-
20. **
|
|
53
|
-
21. **
|
|
54
|
-
22. **
|
|
55
|
-
23. **Suppress
|
|
56
|
-
24. **
|
|
57
|
-
25. **
|
|
58
|
-
26. **Suppress
|
|
59
|
-
27. **Suppress
|
|
60
|
-
28. **
|
|
61
|
-
29. **
|
|
62
|
-
30. **
|
|
63
|
-
31. **
|
|
50
|
+
18. **Wrap Header Text**: This will cause long headers to wrap. (Default: true)
|
|
51
|
+
19. **Auto Header Height**: The column header height is automatically set based on the content of the header cells. (Default: true)
|
|
52
|
+
20. **Wrap Text**: This will cause long texts to wrap in the cells. (Default: false)
|
|
53
|
+
21. **Suppress Row Click Selection**: Disables row selection on row click. (Default: false)
|
|
54
|
+
22. **Suppress Menu Hide**: Prevents hiding the column menu. (Default: false)
|
|
55
|
+
23. **Suppress Movable Columns**: Disables moving columns. (Default: false)
|
|
56
|
+
24. **Enable Cell Expressions**: Enables expressions in cell values. (Default: false)
|
|
57
|
+
25. **Animate Rows**: Enables row animation on data changes. (Default: false)
|
|
58
|
+
26. **Suppress Aggregation Function in Header**: Hides the aggregation function in column headers. (Default: false)
|
|
59
|
+
27. **Suppress Aggregation at Root Level**: Disables aggregation at the root level. (Default: false)
|
|
60
|
+
28. **Suppress Clipboard Paste**: Disables pasting data from the clipboard. (Default: false)
|
|
61
|
+
29. **Suppress Scroll on New Data**: Prevents scrolling to newly added data. (Default: false)
|
|
62
|
+
30. **Suppress Property Names Check**: Disables checking for duplicate property names. (Default: false)
|
|
63
|
+
31. **Hide ID Field**: Hides the ID Field in the Grid. (Default: false)
|
|
64
|
+
32. **Row Click Events**: Enables row click events. This can be used in Dynamic events => Grid Events => Row Clicked. (Default: false)
|
|
65
|
+
33. **Enable Row Selection**: Enables row selection. This can be used in Dynamic events => Grid Events => Checkbox Checked || Checkbox Unchecked. (Default: false)
|
|
66
|
+
34. **Enable Row Status Toggle**: Enables row status toggle events. This can be used in Dynamic events => Grid Events => Checkbox Checked || Checkbox Unchecked. (Default: false)
|
|
64
67
|
|
|
65
68
|
# Data Type Overrides
|
|
66
69
|
|
|
@@ -204,13 +207,15 @@ Configuration includes:
|
|
|
204
207
|
|
|
205
208
|
---
|
|
206
209
|
|
|
207
|
-
|
|
210
|
+
# Set Filters
|
|
208
211
|
|
|
209
212
|
The "Set Filters" feature allows you to enable the setting of filters for columns in a user interface. This feature allows to preset filters when the grid is rendered.
|
|
210
213
|
|
|
211
214
|
Configuration includes:
|
|
212
|
-
|
|
213
|
-
|
|
215
|
+
### Set Filters
|
|
216
|
+
Toggle to enable or disable the feature. When enabled, users can set filters for columns. (Default: false)
|
|
217
|
+
|
|
218
|
+
**Custom Filters**: A grid that allows you to define custom filters.
|
|
214
219
|
- **Field**: The column name to filter.
|
|
215
220
|
- **Filter Type**: The type of filter to apply, options available are: "Starts With," "Less Than," "Date From," "Greater Than," "Equals," and "Contains."
|
|
216
221
|
- **Filter Value**: The Value/Filter to be applied.
|
|
@@ -361,6 +361,30 @@
|
|
|
361
361
|
"defaultValue": null,
|
|
362
362
|
"help": "Height of the header row in pixels"
|
|
363
363
|
},
|
|
364
|
+
{
|
|
365
|
+
"name": "wrapHeaderText",
|
|
366
|
+
"attribute": "dmx-bind:wrap_header_text",
|
|
367
|
+
"title": "Wrap Header Text",
|
|
368
|
+
"type": "boolean",
|
|
369
|
+
"defaultValue": true,
|
|
370
|
+
"help": "This will cause long headers to wrap."
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"name": "autoHeaderHeight",
|
|
374
|
+
"attribute": "dmx-bind:auto_header_height",
|
|
375
|
+
"title": "Auto Header Height",
|
|
376
|
+
"type": "boolean",
|
|
377
|
+
"defaultValue": true,
|
|
378
|
+
"help": "The column header height is automatically set based on the content of the header cells."
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"name": "wrapText",
|
|
382
|
+
"attribute": "dmx-bind:wrap_text",
|
|
383
|
+
"title": "Wrap Text",
|
|
384
|
+
"type": "boolean",
|
|
385
|
+
"defaultValue": false,
|
|
386
|
+
"help": "This will cause long texts to wrap in the cells."
|
|
387
|
+
},
|
|
364
388
|
{
|
|
365
389
|
"name": "suppressRowClickSelection",
|
|
366
390
|
"attribute": "dmx-bind:suppress_row_click_selection",
|
package/dmx-ag-grid.js
CHANGED
|
@@ -20,6 +20,9 @@ dmx.Component('ag-grid', {
|
|
|
20
20
|
cwidths: { type: Object, default: {} },
|
|
21
21
|
ctypes: { type: Array, default: [] },
|
|
22
22
|
cfilters: { type: Array, default: [] },
|
|
23
|
+
wrap_header_text: { type: Boolean, default: true },
|
|
24
|
+
auto_header_height: { type: Boolean, default: true },
|
|
25
|
+
wrap_text: { type: Boolean, default: false },
|
|
23
26
|
data_changes: { type: Array, default: [] },
|
|
24
27
|
data: { type: Array, default: [] },
|
|
25
28
|
dom_layout: { type: String, default: 'autoHeight' },
|
|
@@ -1088,6 +1091,9 @@ dmx.Component('ag-grid', {
|
|
|
1088
1091
|
flex: 1,
|
|
1089
1092
|
minWidth: options.min_width,
|
|
1090
1093
|
resizable: options.resizable,
|
|
1094
|
+
wrapHeaderText: options.wrap_header_text,
|
|
1095
|
+
autoHeaderHeight: options.auto_header_height,
|
|
1096
|
+
wrapText: options.wrap_text,
|
|
1091
1097
|
filter: options.filter,
|
|
1092
1098
|
sortable: options.sortable,
|
|
1093
1099
|
floatingFilter: options.floating_filter
|