Multiple tables but Export & PDf buttons not appearing
Multiple tables but Export & PDf buttons not appearing
<script>$(document).ready(function() {
var userLang = navigator.language || navigator.userLanguage;
if (userLang == "fr-BE") {
url = 'https://cdn.datatables.net/plug-ins/1.10.24/i18n/French.json'
} else {
url = 'https://cdn.datatables.net/plug-ins/1.10.24/i18n/Dutch.json'
}
$('table.display').DataTable( {
buttons: [
'print',
{
extend: 'pdfHtml5',
title : '',
filename: 'export'
}
],
language: {
url: url
}
} );
} );</script>
I am using multiple tables rendered on 1 page
This question has an accepted answers - jump to answer
Answers
Looks like you need to tell Datatables where to display the buttons using one of the techniques documented here. The easiest will be the
dom
option as shown in this example.Kevin
thanks !