• Edit
  • Download
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingGrid: cellEditor demo</title>
    7. <script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    8. <style>
    9. body {
    10. background: #e6e6e6;
    11. }
    12.  
    13. zing-grid[loading] {
    14. height: 307px;
    15. }
    16. </style>
    17. </head>
    18.  
    19. <body>
    20. <zing-grid batch-edit batch-edit-status="customMessage" editor-controls>
    21. <zg-caption>batchEditStatus Demo</zg-caption>
    22. <zg-data data='[
    23. {
    24. "name": "Maria",
    25. "number": 123
    26. },
    27. {
    28. "name": "Juanita",
    29. "number": 456
    30. },
    31. {
    32. "name": "Felicity",
    33. "number": 789
    34. }
    35. ]'>
    36. </zg-data>
    37. </zing-grid>
    38.  
    39. <script>
    40. ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
    41.  
    42. function customMessage(changes, oDom) {
    43. return `The grid has ${changes.modified} modified rows`;
    44. };
    45. </script>
    46. </body>
    47.  
    48. </html>
    1. <!DOCTYPE html>
    2. <html>
    3.  
    4. <head>
    5. <meta charset="utf-8">
    6. <title>ZingGrid: cellEditor demo</title>
    7. <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    8. </head>
    9.  
    10. <body>
    11. <zing-grid batch-edit batch-edit-status="customMessage" editor-controls>
    12. <zg-caption>batchEditStatus Demo</zg-caption>
    13. <zg-data data='[
    14. {
    15. "name": "Maria",
    16. "number": 123
    17. },
    18. {
    19. "name": "Juanita",
    20. "number": 456
    21. },
    22. {
    23. "name": "Felicity",
    24. "number": 789
    25. }
    26. ]'>
    27. </zg-data>
    28. </zing-grid>
    29.  
    30. </body>
    31.  
    32. </html>
    1. body {
    2. background: #e6e6e6;
    3. }
    1. function customMessage(changes, oDom) {
    2. return `The grid has ${changes.modified} modified rows`;
    3. };