Punit Thanki Punit Thanki - 28 days ago 4
jQuery Question

Remove buttons from Data Tables Color Admin Templete

I have bootstrap color admin template, and i have used (Color Admin Table With Button) now I want to remove copy button from data-tables. is there any way i can remove? I have placed following code in my java script please check.

<script>
$(document).ready(function() {
TableManageButtons.init();
});
</script>

Answer

Check this

$('#data-table').DataTable( {
    buttons: [
        'print','csv', 'excel', 'pdf'
   ]
});