Buttons not working in AdminLTE

Buttons not working in AdminLTE

ChrisFChrisF Posts: 15Questions: 7Answers: 0
edited November 2018 in Free community support

Hello,

my export buttons were working, but I added the AdminLTE bootstrap and they stopped working. Are they in conflict with any adminlte scripts?

My DataTables scripts in the template header:

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
    <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
    <script type="text/javascript" src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
    <script type="text/javascript" src="https://cdn.datatables.net/buttons/1.5.1/js/dataTables.buttons.min.js"></script>
    <script type="text/javascript" src="https://cdn.datatables.net/buttons/1.5.1/js/buttons.flash.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
    <script type="text/javascript" src="https://cdn.datatables.net/buttons/1.5.1/js/buttons.html5.min.js"></script>
    <script type="text/javascript" src="https://cdn.datatables.net/buttons/1.5.1/js/buttons.print.min.js"></script>
    <script type="text/javascript" src="https://cdn.datatables.net/plug-ins/1.10.16/api/sum().js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>

Some more AdminLTE DataTables scripts:

 <link rel="stylesheet" href="{{ asset('admin-theme/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css') }}">
 <script type="text/javascript" src="{{ URL::asset('admin-theme/bower_components/datatables.net/js/jquery.dataTables.min.js')}}"></script>
    <script type="text/javascript" src="{{ URL::asset('admin-theme/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js')}}"></script>
   

B is included in DOM

     dom: 'Blfrtip',
                                    lengthMenu: [[10, 25, 50,100,200,300,400], [10, 25, 50,100,200,300,400]],
                                    buttons: [
                                        'copy', 'excel', 'pdf'
                                    ],

Answers

  • ChrisFChrisF Posts: 15Questions: 7Answers: 0

    Nevermind, I managed to fix the problem

  • kuntoajikuntoaji Posts: 1Questions: 0Answers: 0

    Hi, Chris.
    Just wondering how you manage to fix it,

    I have same problem.
    Please share,

    Thanks

This discussion has been closed.