SHARE
TWEET

Untitled

a guest Jun 16th, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var config = {
  2.     map: {
  3.    '*': {
  4.        dataTables: 'EC_Downloads/js/datatables.min',
  5.        buttonsTables: 'EC_Downloads/js/buttons.min',
  6.        buttonsPrintTables: 'EC_Downloads/js/buttons.print.min'
  7.      }
  8.    }
  9.  };
  10.      
  11. <script>
  12. require(['jquery', 'jquery/ui','dataTables','buttonsTables','buttonsPrintTables'], function($){
  13.     $(document).ready(function($){
  14.         $('#example').DataTable({
  15.             dom: 'Bfrtip',
  16.             buttons: [
  17.             'print'
  18.         ]
  19.         });
  20.     });
  21. });
  22.  
  23. require(['jquery','jquery/ui','buttonsTables','buttonsPrintTables'], function($){
  24.     $(document).ready(function($){
  25.         alert('Hello');
  26.     });
  27. });
  28. </script>
  29.      
  30. require(['jquery', 'jquery.dataTables'], function($, DataTable) {
  31.      
  32. {
  33.         "jquery.dataTables": "Magento_Theme/js/jquery.dataTables.min"
  34.     },
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