Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

datatable buttons bootstrap 4

$(document).ready(function() {
    var table = $('#example').DataTable( {
        lengthChange: false,
        buttons: [ 'copy', 'excel', 'pdf', 'colvis' ]
    } );
 
    table.buttons().container()
        .appendTo( '#example_wrapper .col-md-6:eq(0)' );
} );
Source by datatables.net #
 
PREVIOUS NEXT
Tagged: #datatable #buttons #bootstrap
ADD COMMENT
Topic
Name
1+9 =