SHARE
TWEET

Untitled

a guest Dec 9th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <script> var __basePath = ''; </script>
  5.     <script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min.js"></script>
  6. <script src='https://unpkg.com/@ag-grid-enterprise/all-modules@22.1.0/dist/ag-grid-enterprise.min.js'></script></head>
  7. <body>
  8.  
  9. <div style="height: 100%; padding-top: 26px; box-sizing: border-box;">
  10.     <div id="myGrid" style="height: 100%;" class="ag-theme-balham-dark"></div>
  11. </div>
  12.  
  13.     <script>
  14.         var gridOptions = {
  15.         rowModelType: 'serverSide',  
  16.         };
  17.  
  18.         // setup the grid after the page has finished loading
  19.         document.addEventListener('DOMContentLoaded', function() {
  20.         var gridDiv = document.querySelector('#myGrid');
  21.         new agGrid.Grid(gridDiv, gridOptions);
  22.  
  23.         gridOptions.api.setServerSideDatasource(ServerSideDatasource());
  24.         });
  25.  
  26.         function ServerSideDatasource(server) {
  27.         return {
  28.         getRows: function(params) {
  29.             alert('!!!');
  30.         }
  31.         };
  32.         }
  33. </script>
  34. </body>
  35. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top