@cdmx/wappler_ag_grid 0.8.0 → 0.8.2

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 CHANGED
@@ -1,4 +1,4 @@
1
- #### Developed and Maintained by: Roney Dsilva
1
+ #### Developed and Maintained by: Roney Dsilva
2
2
  # AG Grid Module Documentation
3
3
 
4
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:
@@ -195,6 +195,9 @@ This will display the "Configure Actions" options for the buttons in the Actions
195
195
  **Pin Actions Column**
196
196
  This will keep the Actions Column fixed when scrolling horizontally.
197
197
 
198
+ **Actions Column Position**
199
+ This will set the position of the Actions Column.(Default: Right)
200
+
198
201
  **Edit Action Button**
199
202
  This will display the "Edit Action Button" options.
200
203
 
@@ -236,6 +239,68 @@ Specify the tooltip text for the Delete Action button.
236
239
  Specify the CSS class for styling the Delete Action button.
237
240
  Specify the CSS class for styling the icon of the Delete Action button.
238
241
 
242
+ # Custom Action Buttons
243
+
244
+ **Button1 Class**
245
+ Specify the CSS class for Button 1.
246
+
247
+ **Button1 Tooltip**
248
+ Specify the tooltip text for Button 1.
249
+
250
+ **Button2 Class**
251
+ Specify the CSS class for Button 2.
252
+
253
+ **Button2 Tooltip**
254
+ Specify the tooltip text for Button 2.
255
+
256
+ **Button3 Class**
257
+ Specify the CSS class for Button 3.
258
+
259
+ **Button3 Tooltip**
260
+ Specify the tooltip text for Button 3.
261
+
262
+ **Button4 Class**
263
+ Specify the CSS class for Button 4.
264
+
265
+ **Button4 Tooltip**
266
+ Specify the tooltip text for Button 4.
267
+
268
+ **Button5 Class**
269
+ Specify the CSS class for Button 5.
270
+
271
+ **Button5 Tooltip**
272
+ Specify the tooltip text for Button 5.
273
+
274
+ **Button6 Class**
275
+ Specify the CSS class for Button 6.
276
+
277
+ **Button6 Tooltip**
278
+ Specify the tooltip text for Button 6.
279
+
280
+ **Button7 Class**
281
+ Specify the CSS class for Button 7.
282
+
283
+ **Button7 Tooltip**
284
+ Specify the tooltip text for Button 7.
285
+
286
+ **Button8 Class**
287
+ Specify the CSS class for Button 8.
288
+
289
+ **Button8 Tooltip**
290
+ Specify the tooltip text for Button 8.
291
+
292
+ **Button9 Class**
293
+ Specify the CSS class for Button 9.
294
+
295
+ **Button9 Tooltip**
296
+ Specify the tooltip text for Button 9.
297
+
298
+ **Button10 Class**
299
+ Specify the CSS class for Button 10.
300
+
301
+ **Button10 Tooltip**
302
+ Specify the tooltip text for Button 10.
303
+
239
304
  # Action Attributes
240
305
 
241
306
  **Load**
@@ -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",
@@ -1296,6 +1309,431 @@
1296
1309
  "defaultValue": 'fas fa-trash'
1297
1310
  }
1298
1311
  ]
1312
+ },
1313
+ {
1314
+ "name": "customActionButtons",
1315
+ "attribute": "custom_action_buttons",
1316
+ "title": "Custom Action Buttons",
1317
+ "type": "boolean",
1318
+ "defaultValue": false,
1319
+ "display": "fieldset",
1320
+ "show": [
1321
+ "enableCustomActions",
1322
+ "button1ActionBtn",
1323
+ "button1ActionTitle",
1324
+ "button1ActionTooltip",
1325
+ "button1ActionBtnClass",
1326
+ "button1ActionIconClass",
1327
+ "button2ActionBtn",
1328
+ "button2ActionTitle",
1329
+ "button2ActionTooltip",
1330
+ "button2ActionBtnClass",
1331
+ "button2ActionIconClass",
1332
+ "button3ActionBtn",
1333
+ "button3ActionTitle",
1334
+ "button3ActionTooltip",
1335
+ "button3ActionBtnClass",
1336
+ "button3ActionIconClass",
1337
+ "button4ActionBtn",
1338
+ "button4ActionTitle",
1339
+ "button4ActionTooltip",
1340
+ "button4ActionBtnClass",
1341
+ "button4ActionIconClass",
1342
+ "button5ActionBtn",
1343
+ "button5ActionTitle",
1344
+ "button5ActionTooltip",
1345
+ "button5ActionBtnClass",
1346
+ "button5ActionIconClass",
1347
+ "button6ActionBtn",
1348
+ "button6ActionTitle",
1349
+ "button6ActionTooltip",
1350
+ "button6ActionBtnClass",
1351
+ "button6ActionIconClass",
1352
+ "button7ActionBtn",
1353
+ "button7ActionTitle",
1354
+ "button7ActionTooltip",
1355
+ "button7ActionBtnClass",
1356
+ "button7ActionIconClass",
1357
+ "button8ActionBtn",
1358
+ "button8ActionTitle",
1359
+ "button8ActionTooltip",
1360
+ "button8ActionBtnClass",
1361
+ "button8ActionIconClass",
1362
+ "button9ActionBtn",
1363
+ "button9ActionTitle",
1364
+ "button9ActionTooltip",
1365
+ "button9ActionBtnClass",
1366
+ "button9ActionIconClass",
1367
+ "button10ActionBtn",
1368
+ "button10ActionTitle",
1369
+ "button10ActionTooltip",
1370
+ "button10ActionBtnClass",
1371
+ "button10ActionIconClass"
1372
+ ],
1373
+ "noChangeOnHide": true,
1374
+ "groupEnabler": true,
1375
+ "help": "Configure Custom Action buttons in Actions Column"
1376
+ "children": [
1377
+ {
1378
+ "name": "enableCustomActions",
1379
+ "attribute": "dmx-bind:enable_custom_action_btns",
1380
+ "title": "Custom Action Buttons",
1381
+ "type": "boolean",
1382
+ "defaultValue": false,
1383
+ "help": "Enable Custom Action Buttons"
1384
+ },
1385
+ {
1386
+ "name": "button1ActionBtn",
1387
+ "attribute": "dmx-bind:button1_action_btn",
1388
+ "title": "Button1 Action Button",
1389
+ "type": "boolean",
1390
+ "defaultValue": false
1391
+ },
1392
+ {
1393
+ "name": "button1ActionTitle",
1394
+ "attribute": "button1_action_title",
1395
+ "title": "Button1 Title",
1396
+ "type": "text",
1397
+ "defaultValue": ""
1398
+ },
1399
+ {
1400
+ "name": "button1ActionTooltip",
1401
+ "attribute": "button1_action_tooltip",
1402
+ "title": "Button1 Tooltip",
1403
+ "type": "text",
1404
+ "defaultValue": ""
1405
+ },
1406
+ {
1407
+ "name": "button1ActionBtnClass",
1408
+ "attribute": "button1_action_btn_class",
1409
+ "title": "Button1 Class",
1410
+ "type": "text",
1411
+ "defaultValue": "btn-primary btn-xs"
1412
+ },
1413
+ {
1414
+ "name": "button1ActionIconClass",
1415
+ "attribute": "button1_action_icon_class",
1416
+ "title": "Button1 Icon Class",
1417
+ "type": "text",
1418
+ "defaultValue": "fas fa-wrench"
1419
+ },
1420
+ {
1421
+ "name": "button2ActionBtn",
1422
+ "attribute": "dmx-bind:button2_action_btn",
1423
+ "title": "Button2 Action Button",
1424
+ "type": "boolean",
1425
+ "defaultValue": false
1426
+ },
1427
+ {
1428
+ "name": "button2ActionTitle",
1429
+ "attribute": "button2_action_title",
1430
+ "title": "Button2 Title",
1431
+ "type": "text",
1432
+ "defaultValue": ""
1433
+ },
1434
+ {
1435
+ "name": "button2ActionTooltip",
1436
+ "attribute": "button2_action_tooltip",
1437
+ "title": "Button2 Tooltip",
1438
+ "type": "text",
1439
+ "defaultValue": ""
1440
+ },
1441
+ {
1442
+ "name": "button2ActionBtnClass",
1443
+ "attribute": "button2_action_btn_class",
1444
+ "title": "Button2 Class",
1445
+ "type": "text",
1446
+ "defaultValue": "btn-info btn-xs"
1447
+ },
1448
+ {
1449
+ "name": "button2ActionIconClass",
1450
+ "attribute": "button2_action_icon_class",
1451
+ "title": "Button2 Icon Class",
1452
+ "type": "text",
1453
+ "defaultValue": "fas fa-search-plus"
1454
+ },
1455
+ {
1456
+ "name": "button3ActionBtn",
1457
+ "attribute": "dmx-bind:button3_action_btn",
1458
+ "title": "Button3 Action Button",
1459
+ "type": "boolean",
1460
+ "defaultValue": false
1461
+ },
1462
+ {
1463
+ "name": "button3ActionTitle",
1464
+ "attribute": "button3_action_title",
1465
+ "title": "Button3 Title",
1466
+ "type": "text",
1467
+ "defaultValue": ""
1468
+ },
1469
+ {
1470
+ "name": "button3ActionTooltip",
1471
+ "attribute": "button3_action_tooltip",
1472
+ "title": "Button3 Tooltip",
1473
+ "type": "text",
1474
+ "defaultValue": ""
1475
+ },
1476
+ {
1477
+ "name": "button3ActionBtnClass",
1478
+ "attribute": "button3_action_btn_class",
1479
+ "title": "Button3 Class",
1480
+ "type": "text",
1481
+ "defaultValue": "btn-success btn-xs"
1482
+ },
1483
+ {
1484
+ "name": "button3ActionIconClass",
1485
+ "attribute": "button3_action_icon_class",
1486
+ "title": "Button3 Icon Class",
1487
+ "type": "text",
1488
+ "defaultValue": "fas fa-check-circle"
1489
+ },
1490
+ {
1491
+ "name": "button4ActionBtn",
1492
+ "attribute": "dmx-bind:button4_action_btn",
1493
+ "title": "Button4 Action Button",
1494
+ "type": "boolean",
1495
+ "defaultValue": false
1496
+ },
1497
+ {
1498
+ "name": "button4ActionTitle",
1499
+ "attribute": "button4_action_title",
1500
+ "title": "Button4 Title",
1501
+ "type": "text",
1502
+ "defaultValue": ""
1503
+ },
1504
+ {
1505
+ "name": "button4ActionTooltip",
1506
+ "attribute": "button4_action_tooltip",
1507
+ "title": "Button4 Tooltip",
1508
+ "type": "text",
1509
+ "defaultValue": ""
1510
+ },
1511
+ {
1512
+ "name": "button4ActionBtnClass",
1513
+ "attribute": "button4_action_btn_class",
1514
+ "title": "Button4 Class",
1515
+ "type": "text",
1516
+ "defaultValue": "btn-warning btn-xs"
1517
+ },
1518
+ {
1519
+ "name": "button4ActionIconClass",
1520
+ "attribute": "button4_action_icon_class",
1521
+ "title": "Button4 Icon Class",
1522
+ "type": "text",
1523
+ "defaultValue": "fas fa-exclamation-triangle"
1524
+ },
1525
+ {
1526
+ "name": "button5ActionBtn",
1527
+ "attribute": "dmx-bind:button5_action_btn",
1528
+ "title": "Button5 Action Button",
1529
+ "type": "boolean",
1530
+ "defaultValue": false
1531
+ },
1532
+ {
1533
+ "name": "button5ActionTitle",
1534
+ "attribute": "button5_action_title",
1535
+ "title": "Button5 Title",
1536
+ "type": "text",
1537
+ "defaultValue": ""
1538
+ },
1539
+ {
1540
+ "name": "button5ActionTooltip",
1541
+ "attribute": "button5_action_tooltip",
1542
+ "title": "Button5 Tooltip",
1543
+ "type": "text",
1544
+ "defaultValue": ""
1545
+ },
1546
+ {
1547
+ "name": "button5ActionBtnClass",
1548
+ "attribute": "button5_action_btn_class",
1549
+ "title": "Button5 Class",
1550
+ "type": "text",
1551
+ "defaultValue": "btn-danger btn-xs"
1552
+ },
1553
+ {
1554
+ "name": "button5ActionIconClass",
1555
+ "attribute": "button5_action_icon_class",
1556
+ "title": "Button5 Icon Class",
1557
+ "type": "text",
1558
+ "defaultValue": "fas fa-times-circle"
1559
+ },
1560
+ {
1561
+ "name": "button6ActionBtn",
1562
+ "attribute": "dmx-bind:button6_action_btn",
1563
+ "title": "Button6 Action Button",
1564
+ "type": "boolean",
1565
+ "defaultValue": false
1566
+ },
1567
+ {
1568
+ "name": "button6ActionTitle",
1569
+ "attribute": "button6_action_title",
1570
+ "title": "Button6 Title",
1571
+ "type": "text",
1572
+ "defaultValue": ""
1573
+ },
1574
+ {
1575
+ "name": "button6ActionTooltip",
1576
+ "attribute": "button6_action_tooltip",
1577
+ "title": "Button6 Tooltip",
1578
+ "type": "text",
1579
+ "defaultValue": ""
1580
+ },
1581
+ {
1582
+ "name": "button6ActionBtnClass",
1583
+ "attribute": "button6_action_btn_class",
1584
+ "title": "Button6 Class",
1585
+ "type": "text",
1586
+ "defaultValue": "btn-secondary btn-xs"
1587
+ },
1588
+ {
1589
+ "name": "button6ActionIconClass",
1590
+ "attribute": "button6_action_icon_class",
1591
+ "title": "Button6 Icon Class",
1592
+ "type": "text",
1593
+ "defaultValue": "fas fa-link"
1594
+ },
1595
+ {
1596
+ "name": "button7ActionBtn",
1597
+ "attribute": "dmx-bind:button7_action_btn",
1598
+ "title": "Button7 Action Button",
1599
+ "type": "boolean",
1600
+ "defaultValue": false
1601
+ },
1602
+ {
1603
+ "name": "button7ActionTitle",
1604
+ "attribute": "button7_action_title",
1605
+ "title": "Button7 Title",
1606
+ "type": "text",
1607
+ "defaultValue": ""
1608
+ },
1609
+ {
1610
+ "name": "button7ActionTooltip",
1611
+ "attribute": "button7_action_tooltip",
1612
+ "title": "Button7 Tooltip",
1613
+ "type": "text",
1614
+ "defaultValue": ""
1615
+ },
1616
+ {
1617
+ "name": "button7ActionBtnClass",
1618
+ "attribute": "button7_action_btn_class",
1619
+ "title": "Button7 Class",
1620
+ "type": "text",
1621
+ "defaultValue": "btn-primary btn-xs"
1622
+ },
1623
+ {
1624
+ "name": "button7ActionIconClass",
1625
+ "attribute": "button7_action_icon_class",
1626
+ "title": "Button7 Icon Class",
1627
+ "type": "text",
1628
+ "defaultValue": "fas fa-download"
1629
+ },
1630
+ {
1631
+ "name": "button8ActionBtn",
1632
+ "attribute": "dmx-bind:button8_action_btn",
1633
+ "title": "Button8 Action Button",
1634
+ "type": "boolean",
1635
+ "defaultValue": false
1636
+ },
1637
+ {
1638
+ "name": "button8ActionTitle",
1639
+ "attribute": "button8_action_title",
1640
+ "title": "Button8 Title",
1641
+ "type": "text",
1642
+ "defaultValue": ""
1643
+ },
1644
+ {
1645
+ "name": "button8ActionTooltip",
1646
+ "attribute": "button8_action_tooltip",
1647
+ "title": "Button8 Tooltip",
1648
+ "type": "text",
1649
+ "defaultValue": ""
1650
+ },
1651
+ {
1652
+ "name": "button8ActionBtnClass",
1653
+ "attribute": "button8_action_btn_class",
1654
+ "title": "Button8 Class",
1655
+ "type": "text",
1656
+ "defaultValue": "btn-info btn-xs"
1657
+ },
1658
+ {
1659
+ "name": "button8ActionIconClass",
1660
+ "attribute": "button8_action_icon_class",
1661
+ "title": "Button8 Icon Class",
1662
+ "type": "text",
1663
+ "defaultValue": "fas fa-file-pdf"
1664
+ },
1665
+ {
1666
+ "name": "button9ActionBtn",
1667
+ "attribute": "dmx-bind:button9_action_btn",
1668
+ "title": "Button9 Action Button",
1669
+ "type": "boolean",
1670
+ "defaultValue": false
1671
+ },
1672
+ {
1673
+ "name": "button9ActionTitle",
1674
+ "attribute": "button9_action_title",
1675
+ "title": "Button9 Title",
1676
+ "type": "text",
1677
+ "defaultValue": ""
1678
+ },
1679
+ {
1680
+ "name": "button9ActionTooltip",
1681
+ "attribute": "button9_action_tooltip",
1682
+ "title": "Button9 Tooltip",
1683
+ "type": "text",
1684
+ "defaultValue": ""
1685
+ },
1686
+ {
1687
+ "name": "button9ActionBtnClass",
1688
+ "attribute": "button9_action_btn_class",
1689
+ "title": "Button9 Class",
1690
+ "type": "text",
1691
+ "defaultValue": "btn-success btn-xs"
1692
+ },
1693
+ {
1694
+ "name": "button9ActionIconClass",
1695
+ "attribute": "button9_action_icon_class",
1696
+ "title": "Button9 Icon Class",
1697
+ "type": "text",
1698
+ "defaultValue": "fas fa-star"
1699
+ },
1700
+ {
1701
+ "name": "button10ActionBtn",
1702
+ "attribute": "dmx-bind:button10_action_btn",
1703
+ "title": "Button10 Action Button",
1704
+ "type": "boolean",
1705
+ "defaultValue": false
1706
+ },
1707
+ {
1708
+ "name": "button10ActionTitle",
1709
+ "attribute": "button10_action_title",
1710
+ "title": "Button10 Title",
1711
+ "type": "text",
1712
+ "defaultValue": ""
1713
+ },
1714
+ {
1715
+ "name": "button10ActionTooltip",
1716
+ "attribute": "button10_action_tooltip",
1717
+ "title": "Button10 Tooltip",
1718
+ "type": "text",
1719
+ "defaultValue": ""
1720
+ },
1721
+ {
1722
+ "name": "button10ActionBtnClass",
1723
+ "attribute": "button10_action_btn_class",
1724
+ "title": "Button10 Class",
1725
+ "type": "text",
1726
+ "defaultValue": "btn-danger btn-xs"
1727
+ },
1728
+ {
1729
+ "name": "button10ActionIconClass",
1730
+ "attribute": "button10_action_icon_class",
1731
+ "title": "Button10 Icon Class",
1732
+ "type": "text",
1733
+ "defaultValue": "fas fa-trash-alt"
1734
+ }
1735
+
1736
+ ]
1299
1737
  }
1300
1738
  ]
1301
1739
  }
@@ -1809,8 +2247,348 @@
1809
2247
  ],
1810
2248
  "allowedOn": {
1811
2249
  "dmx-ag-grid": true
1812
- }
1813
- }
2250
+ }
2251
+ },
2252
+ {
2253
+ "name": "dmx-ag-grid-button1-clicked",
2254
+ "attributeStartsWith": "dmx-on",
2255
+ "attribute": "row_action_button1",
2256
+ "display": "fieldset",
2257
+ "title": "Button1 Clicked",
2258
+ "icon": "fa fa-lg fa-chevron-right",
2259
+ "groupTitle": "Custom Buttons",
2260
+ "groupIcon": "fa fa-lg fa-hand-pointer",
2261
+ "defaultValue": false,
2262
+ "show": [
2263
+ "button1ActionEvent"
2264
+ ],
2265
+ "noChangeOnHide": true,
2266
+ "type": "boolean",
2267
+ "groupEnabler": true,
2268
+ "children": [
2269
+ {
2270
+ "name": "button1ActionEvent",
2271
+ "attributeStartsWith": "dmx-on",
2272
+ "attribute": "row_action_button1",
2273
+ "isValue": true,
2274
+ "actionsPicker": true,
2275
+ "title": "Action:",
2276
+ "type": "text",
2277
+ "help": "Choose the action to execute.",
2278
+ "defaultValue": "",
2279
+ "initDisplay": "none"
2280
+ }
2281
+ ],
2282
+ "allowedOn": {
2283
+ "dmx-ag-grid": true
2284
+ }
2285
+ },
2286
+ {
2287
+ "name": "dmx-ag-grid-button2-clicked",
2288
+ "attributeStartsWith": "dmx-on",
2289
+ "attribute": "row_action_button2",
2290
+ "display": "fieldset",
2291
+ "title": "Button2 Clicked",
2292
+ "icon": "fa fa-lg fa-chevron-right",
2293
+ "groupTitle": "Custom Buttons",
2294
+ "groupIcon": "fa fa-lg fa-hand-pointer",
2295
+ "defaultValue": false,
2296
+ "show": [
2297
+ "button2ActionEvent"
2298
+ ],
2299
+ "noChangeOnHide": true,
2300
+ "type": "boolean",
2301
+ "groupEnabler": true,
2302
+ "children": [
2303
+ {
2304
+ "name": "button2ActionEvent",
2305
+ "attributeStartsWith": "dmx-on",
2306
+ "attribute": "row_action_button2",
2307
+ "isValue": true,
2308
+ "actionsPicker": true,
2309
+ "title": "Action:",
2310
+ "type": "text",
2311
+ "help": "Choose the action to execute.",
2312
+ "defaultValue": "",
2313
+ "initDisplay": "none"
2314
+ }
2315
+ ],
2316
+ "allowedOn": {
2317
+ "dmx-ag-grid": true
2318
+ }
2319
+ },
2320
+ {
2321
+ "name": "dmx-ag-grid-button3-clicked",
2322
+ "attributeStartsWith": "dmx-on",
2323
+ "attribute": "row_action_button3",
2324
+ "display": "fieldset",
2325
+ "title": "Button3 Clicked",
2326
+ "icon": "fa fa-lg fa-chevron-right",
2327
+ "groupTitle": "Custom Buttons",
2328
+ "groupIcon": "fa fa-lg fa-hand-pointer",
2329
+ "defaultValue": false,
2330
+ "show": [
2331
+ "button3ActionEvent"
2332
+ ],
2333
+ "noChangeOnHide": true,
2334
+ "type": "boolean",
2335
+ "groupEnabler": true,
2336
+ "children": [
2337
+ {
2338
+ "name": "button3ActionEvent",
2339
+ "attributeStartsWith": "dmx-on",
2340
+ "attribute": "row_action_button3",
2341
+ "isValue": true,
2342
+ "actionsPicker": true,
2343
+ "title": "Action:",
2344
+ "type": "text",
2345
+ "help": "Choose the action to execute.",
2346
+ "defaultValue": "",
2347
+ "initDisplay": "none"
2348
+ }
2349
+ ],
2350
+ "allowedOn": {
2351
+ "dmx-ag-grid": true
2352
+ }
2353
+ },
2354
+ {
2355
+ "name": "dmx-ag-grid-button4-clicked",
2356
+ "attributeStartsWith": "dmx-on",
2357
+ "attribute": "row_action_button4",
2358
+ "display": "fieldset",
2359
+ "title": "Button4 Clicked",
2360
+ "icon": "fa fa-lg fa-chevron-right",
2361
+ "groupTitle": "Custom Buttons",
2362
+ "groupIcon": "fa fa-lg fa-hand-pointer",
2363
+ "defaultValue": false,
2364
+ "show": [
2365
+ "button4ActionEvent"
2366
+ ],
2367
+ "noChangeOnHide": true,
2368
+ "type": "boolean",
2369
+ "groupEnabler": true,
2370
+ "children": [
2371
+ {
2372
+ "name": "button4ActionEvent",
2373
+ "attributeStartsWith": "dmx-on",
2374
+ "attribute": "row_action_button4",
2375
+ "isValue": true,
2376
+ "actionsPicker": true,
2377
+ "title": "Action:",
2378
+ "type": "text",
2379
+ "help": "Choose the action to execute.",
2380
+ "defaultValue": "",
2381
+ "initDisplay": "none"
2382
+ }
2383
+ ],
2384
+ "allowedOn": {
2385
+ "dmx-ag-grid": true
2386
+ }
2387
+ },
2388
+ {
2389
+ "name": "dmx-ag-grid-button5-clicked",
2390
+ "attributeStartsWith": "dmx-on",
2391
+ "attribute": "row_action_button5",
2392
+ "display": "fieldset",
2393
+ "title": "Button5 Clicked",
2394
+ "icon": "fa fa-lg fa-chevron-right",
2395
+ "groupTitle": "Custom Buttons",
2396
+ "groupIcon": "fa fa-lg fa-hand-pointer",
2397
+ "defaultValue": false,
2398
+ "show": [
2399
+ "button5ActionEvent"
2400
+ ],
2401
+ "noChangeOnHide": true,
2402
+ "type": "boolean",
2403
+ "groupEnabler": true,
2404
+ "children": [
2405
+ {
2406
+ "name": "button5ActionEvent",
2407
+ "attributeStartsWith": "dmx-on",
2408
+ "attribute": "row_action_button5",
2409
+ "isValue": true,
2410
+ "actionsPicker": true,
2411
+ "title": "Action:",
2412
+ "type": "text",
2413
+ "help": "Choose the action to execute.",
2414
+ "defaultValue": "",
2415
+ "initDisplay": "none"
2416
+ }
2417
+ ],
2418
+ "allowedOn": {
2419
+ "dmx-ag-grid": true
2420
+ }
2421
+ },
2422
+ {
2423
+ "name": "dmx-ag-grid-button6-clicked",
2424
+ "attributeStartsWith": "dmx-on",
2425
+ "attribute": "row_action_button6",
2426
+ "display": "fieldset",
2427
+ "title": "Button6 Clicked",
2428
+ "icon": "fa fa-lg fa-chevron-right",
2429
+ "groupTitle": "Custom Buttons",
2430
+ "groupIcon": "fa fa-lg fa-hand-pointer",
2431
+ "defaultValue": false,
2432
+ "show": [
2433
+ "button6ActionEvent"
2434
+ ],
2435
+ "noChangeOnHide": true,
2436
+ "type": "boolean",
2437
+ "groupEnabler": true,
2438
+ "children": [
2439
+ {
2440
+ "name": "button6ActionEvent",
2441
+ "attributeStartsWith": "dmx-on",
2442
+ "attribute": "row_action_button6",
2443
+ "isValue": true,
2444
+ "actionsPicker": true,
2445
+ "title": "Action:",
2446
+ "type": "text",
2447
+ "help": "Choose the action to execute.",
2448
+ "defaultValue": "",
2449
+ "initDisplay": "none"
2450
+ }
2451
+ ],
2452
+ "allowedOn": {
2453
+ "dmx-ag-grid": true
2454
+ }
2455
+ },
2456
+ {
2457
+ "name": "dmx-ag-grid-button7-clicked",
2458
+ "attributeStartsWith": "dmx-on",
2459
+ "attribute": "row_action_button7",
2460
+ "display": "fieldset",
2461
+ "title": "Button7 Clicked",
2462
+ "icon": "fa fa-lg fa-chevron-right",
2463
+ "groupTitle": "Custom Buttons",
2464
+ "groupIcon": "fa fa-lg fa-hand-pointer",
2465
+ "defaultValue": false,
2466
+ "show": [
2467
+ "button7ActionEvent"
2468
+ ],
2469
+ "noChangeOnHide": true,
2470
+ "type": "boolean",
2471
+ "groupEnabler": true,
2472
+ "children": [
2473
+ {
2474
+ "name": "button7ActionEvent",
2475
+ "attributeStartsWith": "dmx-on",
2476
+ "attribute": "row_action_button7",
2477
+ "isValue": true,
2478
+ "actionsPicker": true,
2479
+ "title": "Action:",
2480
+ "type": "text",
2481
+ "help": "Choose the action to execute.",
2482
+ "defaultValue": "",
2483
+ "initDisplay": "none"
2484
+ }
2485
+ ],
2486
+ "allowedOn": {
2487
+ "dmx-ag-grid": true
2488
+ }
2489
+ },
2490
+ {
2491
+ "name": "dmx-ag-grid-button8-clicked",
2492
+ "attributeStartsWith": "dmx-on",
2493
+ "attribute": "row_action_button8",
2494
+ "display": "fieldset",
2495
+ "title": "Button8 Clicked",
2496
+ "icon": "fa fa-lg fa-chevron-right",
2497
+ "groupTitle": "Custom Buttons",
2498
+ "groupIcon": "fa fa-lg fa-hand-pointer",
2499
+ "defaultValue": false,
2500
+ "show": [
2501
+ "button8ActionEvent"
2502
+ ],
2503
+ "noChangeOnHide": true,
2504
+ "type": "boolean",
2505
+ "groupEnabler": true,
2506
+ "children": [
2507
+ {
2508
+ "name": "button8ActionEvent",
2509
+ "attributeStartsWith": "dmx-on",
2510
+ "attribute": "row_action_button8",
2511
+ "isValue": true,
2512
+ "actionsPicker": true,
2513
+ "title": "Action:",
2514
+ "type": "text",
2515
+ "help": "Choose the action to execute.",
2516
+ "defaultValue": "",
2517
+ "initDisplay": "none"
2518
+ }
2519
+ ],
2520
+ "allowedOn": {
2521
+ "dmx-ag-grid": true
2522
+ }
2523
+ },
2524
+ {
2525
+ "name": "dmx-ag-grid-button9-clicked",
2526
+ "attributeStartsWith": "dmx-on",
2527
+ "attribute": "row_action_button9",
2528
+ "display": "fieldset",
2529
+ "title": "Button9 Clicked",
2530
+ "icon": "fa fa-lg fa-chevron-right",
2531
+ "groupTitle": "Custom Buttons",
2532
+ "groupIcon": "fa fa-lg fa-hand-pointer",
2533
+ "defaultValue": false,
2534
+ "show": [
2535
+ "button9ActionEvent"
2536
+ ],
2537
+ "noChangeOnHide": true,
2538
+ "type": "boolean",
2539
+ "groupEnabler": true,
2540
+ "children": [
2541
+ {
2542
+ "name": "button9ActionEvent",
2543
+ "attributeStartsWith": "dmx-on",
2544
+ "attribute": "row_action_button9",
2545
+ "isValue": true,
2546
+ "actionsPicker": true,
2547
+ "title": "Action:",
2548
+ "type": "text",
2549
+ "help": "Choose the action to execute.",
2550
+ "defaultValue": "",
2551
+ "initDisplay": "none"
2552
+ }
2553
+ ],
2554
+ "allowedOn": {
2555
+ "dmx-ag-grid": true
2556
+ }
2557
+ },
2558
+ {
2559
+ "name": "dmx-ag-grid-button10-clicked",
2560
+ "attributeStartsWith": "dmx-on",
2561
+ "attribute": "row_action_button10",
2562
+ "display": "fieldset",
2563
+ "title": "Button10 Clicked",
2564
+ "icon": "fa fa-lg fa-chevron-right",
2565
+ "groupTitle": "Custom Buttons",
2566
+ "groupIcon": "fa fa-lg fa-hand-pointer",
2567
+ "defaultValue": false,
2568
+ "show": [
2569
+ "button10ActionEvent"
2570
+ ],
2571
+ "noChangeOnHide": true,
2572
+ "type": "boolean",
2573
+ "groupEnabler": true,
2574
+ "children": [
2575
+ {
2576
+ "name": "button10ActionEvent",
2577
+ "attributeStartsWith": "dmx-on",
2578
+ "attribute": "row_action_button10",
2579
+ "isValue": true,
2580
+ "actionsPicker": true,
2581
+ "title": "Action:",
2582
+ "type": "text",
2583
+ "help": "Choose the action to execute.",
2584
+ "defaultValue": "",
2585
+ "initDisplay": "none"
2586
+ }
2587
+ ],
2588
+ "allowedOn": {
2589
+ "dmx-ag-grid": true
2590
+ }
2591
+ },
1814
2592
  ],
1815
2593
  "static_events": []
1816
2594
  }
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' },
@@ -81,6 +82,57 @@ dmx.Component('ag-grid', {
81
82
  delete_action_tooltip: {type: String, default: 'Delete' },
82
83
  delete_action_icon_class: {type: String, default: 'fas fa-trash' },
83
84
  delete_action_btn_class: {type: String, default: 'btn-danger btn-xs' },
85
+ enable_custom_action_btns: { type: Boolean, default: false },
86
+ button1_action_btn: { type: "Boolean", default: false },
87
+ button1_action_title: { type: "String", default: "" },
88
+ button1_action_tooltip: { type: "String", default: "" },
89
+ button1_action_icon_class: { type: "String", default: "fas fa-wrench" },
90
+ button1_action_btn_class: { type: "String", default: "btn-primary btn-xs" },
91
+ button2_action_btn: { type: "Boolean", default: false },
92
+ button2_action_title: { type: "String", default: "" },
93
+ button2_action_tooltip: { type: "String", default: "" },
94
+ button2_action_icon_class: { type: "String", default: "fas fa-search-plus" },
95
+ button2_action_btn_class: { type: "String", default: "btn-info btn-xs" },
96
+ button3_action_btn: { type: "Boolean", default: false },
97
+ button3_action_title: { type: "String", default: "" },
98
+ button3_action_tooltip: { type: "String", default: "" },
99
+ button3_action_icon_class: { type: "String", default: "fas fa-check-circle" },
100
+ button3_action_btn_class: { type: "String", default: "btn-success btn-xs" },
101
+ button4_action_btn: { type: "Boolean", default: false },
102
+ button4_action_title: { type: "String", default: "" },
103
+ button4_action_tooltip: { type: "String", default: "" },
104
+ button4_action_icon_class: { type: "String", default: "fas fa-exclamation-triangle" },
105
+ button4_action_btn_class: { type: "String", default: "btn-warning btn-xs" },
106
+ button5_action_btn: { type: "Boolean", default: false },
107
+ button5_action_title: { type: "String", default: "" },
108
+ button5_action_tooltip: { type: "String", default: "Edit" },
109
+ button5_action_icon_class: { type: "String", default: "fas fa-times-circle" },
110
+ button5_action_btn_class: { type: "String", default: "btn-danger btn-xs" },
111
+ button6_action_btn: { type: "Boolean", default: false },
112
+ button6_action_title: { type: "String", default: "" },
113
+ button6_action_tooltip: { type: "String", default: "" },
114
+ button6_action_icon_class: { type: "String", default: "fas fa-link" },
115
+ button6_action_btn_class: { type: "String", default: "btn-secondary btn-xs" },
116
+ button7_action_btn: { type: "Boolean", default: false },
117
+ button7_action_title: { type: "String", default: "" },
118
+ button7_action_tooltip: { type: "String", default: "" },
119
+ button7_action_icon_class: { type: "String", default: "fas fa-download" },
120
+ button7_action_btn_class: { type: "String", default: "btn-primary btn-xm" },
121
+ button8_action_btn: { type: "Boolean", default: false },
122
+ button8_action_title: { type: "String", default: "" },
123
+ button8_action_tooltip: { type: "String", default: "" },
124
+ button8_action_icon_class: { type: "String", default: "fas fa-file-pdf" },
125
+ button8_action_btn_class: { type: "String", default: "btn-info btn-xs" },
126
+ button9_action_btn: { type: "Boolean", default: false },
127
+ button9_action_title: { type: "String", default: "" },
128
+ button9_action_tooltip: { type: "String", default: "" },
129
+ button9_action_icon_class: { type: "String", default: "fas fa-star" },
130
+ button9_action_btn_class: { type: "String", default: "btn-success btn-xs" },
131
+ button10_action_btn: { type: "Boolean", default: false },
132
+ button10_action_title: { type: "String", default: "" },
133
+ button10_action_tooltip: { type: "String", default: "" },
134
+ button10_action_icon_class: { type: "String", default: "fas fa-trash-alt" },
135
+ button10_action_btn_class: { type: "String", default: "btn-danger btn-xs" },
84
136
  data_binded_changes: {type: Array, default: [] },
85
137
  hide_fields: {type: String, default: null },
86
138
  hide_filters: {type: String, default: null },
@@ -233,15 +285,24 @@ dmx.Component('ag-grid', {
233
285
  `;
234
286
  }
235
287
  function actionsRenderer(params) {
236
- // Default button configurations (Edit and View)
288
+ // Default button configurations (Edit, View and Delete)
237
289
  const defaultButtons = [
238
290
  { action: 'Edit', classNames: 'btn-primary btn-xs', tooltip: 'Edit', icon: 'fas fa-pencil-alt' },
239
291
  { action: 'View', classNames: 'btn-info btn-xs', tooltip: 'View', icon: 'fas fa-eye' },
240
292
  { action: 'Delete', classNames: 'btn-danger btn-xs', tooltip: 'Delete', icon: 'fas fa-trash' },
293
+ { action: 'Button1', classNames: 'btn-primary btn-xs', tooltip: 'Button1', icon: 'fas fa-wrench' },
294
+ { action: 'Button2', classNames: 'btn-info btn-xs', tooltip: 'Button2', icon: 'fas fa-search-plus' },
295
+ { action: 'Button3', classNames: 'btn-success btn-xs', tooltip: 'Button3', icon: 'fas fa-check-circle' },
296
+ { action: 'Button4', classNames: 'btn-warning btn-xs', tooltip: 'Button4', icon: 'fas fa-exclamation-triangle' },
297
+ { action: 'Button5', classNames: 'btn-danger btn-xs', tooltip: 'Button5', icon: 'fas fa-times-circle' },
298
+ { action: 'Button6', classNames: 'btn-secondary btn-xs', tooltip: 'Button6', icon: 'fas fa-link' },
299
+ { action: 'Button7', classNames: 'btn-primary btn-sm', tooltip: 'Button7', icon: 'fas fa-download' },
300
+ { action: 'Button8', classNames: 'btn-info btn-sm', tooltip: 'Button8', icon: 'fas fa-file-pdf' },
301
+ { action: 'Button9', classNames: 'btn-success btn-sm', tooltip: 'Button9', icon: 'fas fa-star' },
302
+ { action: 'Button10', classNames: 'btn-danger btn-sm', tooltip: 'Button10', icon: 'fas fa-trash-alt' }
241
303
  ];
242
304
  // User-defined button configurations (if any)
243
305
  const buttons = params.buttons || defaultButtons;
244
-
245
306
  // Create a new container element to hold the buttons
246
307
  const container = document.createElement('div');
247
308
 
@@ -831,7 +892,7 @@ dmx.Component('ag-grid', {
831
892
  filter: null,
832
893
  sortable: false,
833
894
  cellRenderer: actionsRenderer,
834
- pinned: options.pin_actions,
895
+ pinned: (options.pin_actions ? options.actions_column_position: undefined),
835
896
  cellRendererParams: {
836
897
  buttons: [],
837
898
  },
@@ -864,21 +925,30 @@ dmx.Component('ag-grid', {
864
925
  },
865
926
  });
866
927
  }
867
- if (options.delete_action_btn) {
868
- actionsColumn.cellRendererParams.buttons.push({
869
- action: options.delete_action_title,
870
- classNames: options.delete_action_btn_class,
871
- tooltip: options.delete_action_tooltip,
872
- icon: options.delete_action_icon_class,
873
- onClick: (rowData) => {
874
- this.set('data', rowData);
875
- this.set('id', rowData.id);
876
- this.dispatchEvent('row_action_delete');
877
- },
878
- });
879
- }
880
-
881
- columnDefs.push(actionsColumn);
928
+ if (options.enable_custom_action_btns) {
929
+ for (let i = 1; i <= 10; i++) {
930
+ const buttonActionKey = `button${i}_action_btn`;
931
+ const buttonTitleKey = `button${i}_action_title`;
932
+ const buttonClassKey = `button${i}_action_btn_class`;
933
+ const buttonTooltipKey = `button${i}_action_tooltip`;
934
+ const buttonIconClassKey = `button${i}_action_icon_class`;
935
+
936
+ if (options[buttonActionKey]) {
937
+ actionsColumn.cellRendererParams.buttons.push({
938
+ action: options[buttonTitleKey],
939
+ classNames: options[buttonClassKey],
940
+ tooltip: options[buttonTooltipKey],
941
+ icon: options[buttonIconClassKey],
942
+ onClick: (rowData) => {
943
+ this.set('data', rowData);
944
+ this.set('id', rowData.id);
945
+ this.dispatchEvent(`row_action_button${i}`);
946
+ },
947
+ });
948
+ }
949
+ }
950
+ }
951
+ options.actions_column_position=='right' ? columnDefs.push(actionsColumn):columnDefs.unshift(actionsColumn);
882
952
  }
883
953
  if (options.locale_text == 'HE') {
884
954
  localeText = AG_GRID_LOCALE_HE
@@ -1124,9 +1194,19 @@ dmx.Component('ag-grid', {
1124
1194
  row_status_disabled: Event,
1125
1195
  row_action_edit: Event,
1126
1196
  row_action_view: Event,
1127
- row_action_delete: Event
1197
+ row_action_delete: Event,
1198
+ row_action_button1: Event,
1199
+ row_action_button2: Event,
1200
+ row_action_button3: Event,
1201
+ row_action_button4: Event,
1202
+ row_action_button5: Event,
1203
+ row_action_button6: Event,
1204
+ row_action_button7: Event,
1205
+ row_action_button8: Event,
1206
+ row_action_button9: Event,
1207
+ row_action_button10: Event
1128
1208
  },
1129
-
1209
+
1130
1210
  render: function(node) {
1131
1211
  if (this.$node) {
1132
1212
  this.$parse();
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.2",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",