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