Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var config = {
- map: {
- '*': {
- dataTables: 'EC_Downloads/js/datatables.min',
- buttonsTables: 'EC_Downloads/js/buttons.min',
- buttonsPrintTables: 'EC_Downloads/js/buttons.print.min'
- }
- }
- };
- <script>
- require(['jquery', 'jquery/ui','dataTables','buttonsTables','buttonsPrintTables'], function($){
- $(document).ready(function($){
- $('#example').DataTable({
- dom: 'Bfrtip',
- buttons: [
- 'print'
- ]
- });
- });
- });
- require(['jquery','jquery/ui','buttonsTables','buttonsPrintTables'], function($){
- $(document).ready(function($){
- alert('Hello');
- });
- });
- </script>
- require(['jquery', 'jquery.dataTables'], function($, DataTable) {
- {
- "jquery.dataTables": "Magento_Theme/js/jquery.dataTables.min"
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement