DataTable Button Collection

DataTable Button Collection

zgoforthzgoforth Posts: 493Questions: 98Answers: 2

Hello, I have created a simple DataTable to replace a SharePoint list on a certain subsite. I have another much bigger DataTable on another landing page, and it has a button collection that drops down perfectly. This other datatable on the other hand looks like this. How do I fix it?

Here is my JS:

$(document).ready(function() {
    
  $('#myTable').DataTable( {
    "columns": [
      { "data": "Program" },
      { "data": "Deliverable" },
      { "data": "To" },
      { "data": "Date" },
      { "data": "Approved" },
      { "data": "Notes" }
    ],
    dom: 'Bfrtip',
    buttons: [{
                extend: 'collection',
                className: "btn-dark",
                text: 'Export',
                buttons: [{
                        extend: "excel",
                        className: "btn-dark"
                    },
                    {
                        extend: "pdf",
                        className: "btn-dark"
                    },
                    {
                        extend: "print",
                        className: "btn-dark"
                    },
                ],
            }]
  } );
    
 loadData();
    
} );

Replies

This discussion has been closed.