How to add export to pdf button in datatables. Template is: SB Admin 2

How to add export to pdf button in datatables. Template is: SB Admin 2

XuannaXuanna Posts: 1Questions: 1Answers: 0
  1. datatables-demo.js file
    $(document).ready(function() {
    $('#dataTable').DataTable();
    });

  2. sidebar.php
    <head>

    <link href="../css/admin-2.min.css" rel="stylesheet">


    <link href="../vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet">
    </head>

  3. footer.php







Answers

Sign In or Register to comment.