@cdmx/wappler_ag_grid 0.4.7 → 0.4.9
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 +206 -19
- package/app_connect/components.hjson +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,21 +1,208 @@
|
|
|
1
1
|
Maintained by: Roney Dsilva
|
|
2
|
+
# AG Grid Module Documentation
|
|
3
|
+
|
|
4
|
+
The AG Grid module allows you to create a flexible and customizable data grid with various options and properties. Below, you'll find the list of properties and options available for configuring the AG Grid module:
|
|
5
|
+
|
|
6
|
+
## AG Grid Properties
|
|
7
|
+
|
|
8
|
+
1. **ID**: Unique ID for the grid. (Required)
|
|
9
|
+
2. **Data Source**: Data source for the grid. Enter the data source to populate the grid. (Required)
|
|
10
|
+
3. **No Auto Load**: Set to true to disable auto-load of the grid. (Default: true)
|
|
11
|
+
4. **Theme**: Select a theme for the grid.
|
|
12
|
+
- "Alpine"
|
|
13
|
+
- "Balham"
|
|
14
|
+
- "Material"
|
|
15
|
+
- "Base" (Default)
|
|
16
|
+
5. **Locale**: Select the locale for the grid. Currently supported locales: English (EN) and Hebrew (HE). (Default: EN)
|
|
17
|
+
|
|
18
|
+
## AG Grid Options
|
|
19
|
+
6. **Minimum Width**: The minimum width of the column. (Default: 150)
|
|
20
|
+
7. **Resizable**: Specifies if the column can be resized. (Default: true)
|
|
21
|
+
8. **Sortable**: Specifies if the columns are sortable. (Default: true)
|
|
22
|
+
9. **Filter**: Specifies if the column has a filter. (Default: true)
|
|
23
|
+
10. **Floating Filter**: Specifies if the column has a floating filter. (Default: true)
|
|
24
|
+
11. **CSV Export**: Specifies if Export to CSV is enabled. (Default: true)
|
|
25
|
+
12. **Enable RTL**: Enabled Right to Left, used for Hebrew and Arabic. (Default: false)
|
|
26
|
+
13. **Column Hover Highlight**: Specifies column hover highlighting. (Default: true)
|
|
27
|
+
14. **Suppress Row Deselection**: Specifies if rows can be deselected. (Default: false)
|
|
28
|
+
15. **Pagination**: Enables pagination. (Default: true)
|
|
29
|
+
16. **Pagination Page Size**: Number of rows to show per page. (Default: 20)
|
|
30
|
+
17. **Row Selection**: Row Selection (single or multiple).
|
|
31
|
+
- "Single"
|
|
32
|
+
- "Multiple" (Default)
|
|
33
|
+
18. **Timezone**: Timezone for Date Fields. Select the appropriate timezone from the dropdown list.
|
|
34
|
+
19. **Date Format**: Date Format for displaying date values. (Default: "dd/MM/yyyy hh:mm A")
|
|
35
|
+
20. **Sticky Header**: Enable sticky header. Optionally specify the header offset and topbar class.
|
|
36
|
+
- Header Offset: Specifies offset from the top of the viewport area (Optional). (Default: 100)
|
|
37
|
+
- Topbar Class: Specify class, e.g., "topbar", to measure the offset from (Optional). (Default: "topbar")
|
|
38
|
+
- Topbar Offset: Specify topbar offset (Default: 80)
|
|
39
|
+
21. **Row Height**: Height of each row in pixels. (Default: 25)
|
|
40
|
+
22. **Header Height**: Height of the header row in pixels. (Default: 30)
|
|
41
|
+
23. **Suppress Row Click Selection**: Disables row selection on row click. (Default: false)
|
|
42
|
+
24. **Suppress Menu Hide**: Prevents hiding the column menu. (Default: false)
|
|
43
|
+
25. **Suppress Movable Columns**: Disables moving columns. (Default: false)
|
|
44
|
+
26. **Enable Cell Expressions**: Enables expressions in cell values. (Default: false)
|
|
45
|
+
27. **Animate Rows**: Enables row animation on data changes. (Default: false)
|
|
46
|
+
28. **Suppress Aggregation Function in Header**: Hides the aggregation function in column headers. (Default: false)
|
|
47
|
+
29. **Suppress Aggregation at Root Level**: Disables aggregation at the root level. (Default: false)
|
|
48
|
+
30. **Suppress Clipboard Paste**: Disables pasting data from the clipboard. (Default: false)
|
|
49
|
+
31. **Suppress Scroll on New Data**: Prevents scrolling to newly added data. (Default: false)
|
|
50
|
+
32. **Suppress Property Names Check**: Disables checking for duplicate property names. (Default: false)
|
|
51
|
+
33. **Hide ID Field**: Hides the ID Field in the Grid. (Default: false)
|
|
52
|
+
34. **Row Click Events**: Enables row click events. This can be used in Dynamic events => Grid Events => Row Clicked. (Default: false)
|
|
53
|
+
35. **Enable Row Selection**: Enables row selection. This can be used in Dynamic events => Grid Events => Checkbox Checked || Checkbox Unchecked. (Default: false)
|
|
54
|
+
36. **Enable Row Status Toggle**: Enables row status toggle events. This can be used in Dynamic events => Grid Events => Checkbox Checked || Checkbox Unchecked. (Default: false)
|
|
55
|
+
|
|
56
|
+
# Data Type Overrides
|
|
57
|
+
|
|
58
|
+
The Data Type Overrides feature allows you to configure type overrides for specific attributes in the data. This allows you to override the auto-detected data types.
|
|
59
|
+
This grid allows you to define custom type overrides for specific fields in the data. The grid has the following columns:
|
|
60
|
+
|
|
61
|
+
1. **Field**: The field name for which you want to override the data type. (Editable: text)
|
|
62
|
+
2. **Type**: The new data type you want to assign to the field. Choose from "number," "text," or "date." (Editable: list)
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
# Style Formatting
|
|
67
|
+
|
|
68
|
+
The Style Formatting feature allows you to configure custom colors and fonts for column data based on certain conditions.
|
|
69
|
+
This grid allows you to define custom color and font settings based on specific conditions. The grid has the following columns:
|
|
70
|
+
|
|
71
|
+
1. **Field**: The field name for which you want to apply the custom color and font settings. (Editable: text)
|
|
72
|
+
2. **Condition**: The condition to check for applying the custom color and font settings. (Editable: text)
|
|
73
|
+
3. **Color**: The custom color to apply when the condition is met. Enter the color in HEX format (e.g., "#FF0000") or use named colors (e.g., "red"). (Editable: text)
|
|
74
|
+
4. **Area**: Choose where to apply the color: "text" (cell text) or "cell" (cell background). (Editable: list)
|
|
75
|
+
5. **Font**: Choose the font style: "normal," "italic," or "bold." (Editable: list)
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
# Tooltip Settings
|
|
79
|
+
|
|
80
|
+
The Tooltip Settings feature allows you to configure custom tooltips for specific fields in the data.
|
|
81
|
+
|
|
82
|
+
To set a custom tooltip text, enter the desired text for the tooltip in the field.
|
|
83
|
+
This grid allows you to configure custom tooltips for specific fields. The grid has the following columns:
|
|
84
|
+
|
|
85
|
+
1. **Field**: The field name for which you want to set a custom tooltip. (Editable: text)
|
|
86
|
+
2. **Tooltip**: Choose whether to enable ("yes") or disable ("no") the tooltip for the field. (Editable: list)
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
# Advanced Data Manipulation
|
|
90
|
+
|
|
91
|
+
The Advanced Data Manipulation feature allows you to add custom values to the field data based on specific conditions.
|
|
92
|
+
This grid allows you to define custom data changes for specific fields. The grid has the following columns:
|
|
93
|
+
|
|
94
|
+
1. **Field**: The field name for which you want to apply the custom data changes. (Editable: text)
|
|
95
|
+
2. **Data**: The new data source or value to be used for the field. (Editable: date picker)
|
|
96
|
+
3. **Property**: The property within the data source to use as the new value for the field. (Editable: text)
|
|
97
|
+
4. **Output**: The output value for the field. (Editable: text)
|
|
98
|
+
5. **Area**: Choose where to apply the data changes: "cell" (cell text) or "tooltip" (tooltip text). (Editable: list)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
# Data Manipulation
|
|
104
|
+
|
|
105
|
+
The Data Manipulation feature allows you to add custom values to the field data based on specific conditions.
|
|
106
|
+
This grid allows you to define custom data changes for specific fields. The grid has the following columns:
|
|
107
|
+
|
|
108
|
+
1. **Field**: The field name for which you want to apply the custom data changes. (Editable: text)
|
|
109
|
+
2. **Value**: The value to be replaced in the field data. (Editable: text)
|
|
110
|
+
3. **New Value**: The new value to replace the original value in the field data. (Editable: text)
|
|
111
|
+
4. **Area**: Choose where to apply the data changes: "cell" (cell text) or "tooltip" (tooltip text). (Editable: list)
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
**Configure Header Names**
|
|
115
|
+
This grid allows you to define custom header names for specific columns. The grid has the following columns:
|
|
116
|
+
|
|
117
|
+
1. **Field**: The field name for which you want to set a custom header name. (Editable: text)
|
|
118
|
+
2. **Name**: The custom header name to be displayed for the column. (Editable: date picker)
|
|
119
|
+
|
|
120
|
+
Please note that these changes will only take effect when the `cnames` attribute is set to `true`.
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
# Custom Widths
|
|
125
|
+
|
|
126
|
+
The Custom Widths feature allows you to configure custom column widths for columns.
|
|
127
|
+
|
|
128
|
+
**Configure Custom Widths**
|
|
129
|
+
This grid allows you to define custom column widths for specific columns. The grid has the following columns:
|
|
130
|
+
|
|
131
|
+
1. **Field**: The field name for which you want to set a custom column width. (Editable: text)
|
|
132
|
+
2. **Min Width**: The minimum width for the column. (Editable: text)
|
|
133
|
+
3. **Max Width**: The maximum width for the column. (Editable: text)
|
|
134
|
+
|
|
135
|
+
# Hide Fields and Filters
|
|
136
|
+
|
|
137
|
+
The Hide Fields and Filters feature allows you to hide components such as filters and fields.
|
|
138
|
+
|
|
139
|
+
**Hide Components**
|
|
140
|
+
This will display the "Hide Fields," "Hide Filters," and "Hide Sort Filters" fields with options to specify which components to hide.
|
|
141
|
+
|
|
142
|
+
**Hide Fields**
|
|
143
|
+
Enter the names of fields you want to hide separated by commas. The specified fields will be hidden from the view.
|
|
144
|
+
|
|
145
|
+
**Hide Filters**
|
|
146
|
+
Enter the names of filters you want to hide separated by commas. The specified filters will be hidden from the view.
|
|
147
|
+
|
|
148
|
+
**Hide Sort Filters**
|
|
149
|
+
Enter the names of sort filters you want to hide separated by commas. The specified sort filters will be hidden from the view.
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
# Configure Actions Column
|
|
154
|
+
The Configure Actions Column feature allows you to configure actions for the buttons in the Actions Column.
|
|
155
|
+
|
|
156
|
+
**Enable Actions**
|
|
157
|
+
This will display the "Configure Actions" options for the buttons in the Actions Column.
|
|
158
|
+
|
|
159
|
+
**Pin Actions Column**
|
|
160
|
+
This will keep the Actions Column fixed when scrolling horizontally.
|
|
161
|
+
|
|
162
|
+
**Edit Action Button**
|
|
163
|
+
This will display the "Edit Action Button" options.
|
|
164
|
+
|
|
165
|
+
**Edit Action Button Title**
|
|
166
|
+
Specify the title for the Edit Action button.
|
|
167
|
+
|
|
168
|
+
**Edit Action Button Tooltip**
|
|
169
|
+
Specify the tooltip text for the Edit Action button.
|
|
170
|
+
|
|
171
|
+
**Edit Action Button Class**
|
|
172
|
+
Specify the CSS class for styling the Edit Action button.
|
|
173
|
+
|
|
174
|
+
**Edit Action Icon Class**
|
|
175
|
+
Specify the CSS class for styling the icon of the Edit Action button.
|
|
176
|
+
|
|
177
|
+
**View Action Button**
|
|
178
|
+
This will display the "View Action Button" options.
|
|
179
|
+
|
|
180
|
+
**View Action Button Title**
|
|
181
|
+
Specify the title for the View Action button.
|
|
182
|
+
|
|
183
|
+
**View Action Button Tooltip**
|
|
184
|
+
Specify the tooltip text for the View Action button.
|
|
185
|
+
|
|
186
|
+
**View Action Button Class**
|
|
187
|
+
Specify the CSS class for styling the View Action button.
|
|
188
|
+
|
|
189
|
+
**View Action Icon Class**
|
|
190
|
+
Specify the CSS class for styling the icon of the View Action button.
|
|
191
|
+
|
|
192
|
+
**Delete Action Button**
|
|
193
|
+
**Delete Action Button Title**
|
|
194
|
+
Specify the title for the Delete Action button.
|
|
195
|
+
|
|
196
|
+
**Delete Action Button Tooltip**
|
|
197
|
+
Specify the tooltip text for the Delete Action button.
|
|
198
|
+
|
|
199
|
+
**Delete Action Button Class**
|
|
200
|
+
Specify the CSS class for styling the Delete Action button.
|
|
201
|
+
Specify the CSS class for styling the icon of the Delete Action button.
|
|
202
|
+
|
|
203
|
+
## License
|
|
204
|
+
|
|
205
|
+
The AG Grid module is licensed under the MIT License. Please refer to the license file for more details.
|
|
206
|
+
|
|
207
|
+
For any issues or further assistance, please contact our support team.
|
|
2
208
|
|
|
3
|
-
This Custom Module provides the below features:
|
|
4
|
-
1. Generates AG-Grid given a Data Source
|
|
5
|
-
2. Automatically sets the Filter types and Date formats
|
|
6
|
-
3. Provides Grid Options Applicable for all fields
|
|
7
|
-
4. Dynamic Binding available for Custom Column Definitions
|
|
8
|
-
5. Export to CSV button
|
|
9
|
-
6. Sticky header options
|
|
10
|
-
7. Custom Styles (Column Data)
|
|
11
|
-
8. Custom Header Names
|
|
12
|
-
9. Custom min and max widths
|
|
13
|
-
10. Timezone setting for Date fields
|
|
14
|
-
11. Data Manipulation
|
|
15
|
-
12. Theme selection
|
|
16
|
-
13. Row Click Event Handling
|
|
17
|
-
14. Options to enable checkboxes for IDs for bulk select Operations
|
|
18
|
-
15. Options to enable Toggle Sliders for status fields
|
|
19
|
-
16. Added Action Buttons feature
|
|
20
|
-
17. Advanced Data Manipulation using Arrays and SC bindings
|
|
21
|
-
18. Added RTL and Locale Controls
|
|
@@ -1028,6 +1028,14 @@
|
|
|
1028
1028
|
"defaultValue": false,
|
|
1029
1029
|
"help": "Enable Actions"
|
|
1030
1030
|
},
|
|
1031
|
+
{
|
|
1032
|
+
"name": "pingActions",
|
|
1033
|
+
"attribute": "dmx-bind:pin_actions",
|
|
1034
|
+
"title": "Pin Actions Column",
|
|
1035
|
+
"type": "boolean",
|
|
1036
|
+
"defaultValue": true,
|
|
1037
|
+
"help": "Pin Actions Column"
|
|
1038
|
+
},
|
|
1031
1039
|
{
|
|
1032
1040
|
"name": "editActionBtn",
|
|
1033
1041
|
"attribute": "dmx-bind:edit_action_btn",
|