Buttons do not show on bootstrap4
Buttons do not show on bootstrap4
sanchezfabio08
Posts: 5Questions: 1Answers: 0
What can I be doing wrong?
Could you explain this function better?
.appendTo ($ ('# table_id_wrapper .col-md-6: eq (0)', table.table (). container ())); ?
var table = $('#table_id').DataTable( {
scrollY: "645px",
scrollX: true,
scrollCollapse: true,
paging: false,
fixedColumns: {
heightMatch: 'auto'
},
language: {
"url": "plugins/datatables/plugins/Portuguese-Brasil.json"
},
lengthChange: false,
buttons: [ 'copy', 'excel', 'pdf', 'colvis' ],
} );
table.buttons().container()
.appendTo( $('#table_id_wrapper .col-md-6:eq(0)', table.table().container() ) );
} );
This discussion has been closed.
Replies
Please don't post duplicate questions. See the answer in your other thread:
https://datatables.net/forums/discussion/54618/buttons-on-bootstrap4-does-not-show-on-grid#latest
Kevin
Sorry Kevin, Thank you!!!.