Show entries dropdown disappear when using export tools
$(document).ready(function() {
$('#example').DataTable( {
dom: 'Bfrtip', // if you remove this line you will see the show entries dropdown
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
} );
});
You just lack the
l
flag indom
.l
for "length changing input control".will make the dropdown to reappear.
updated fiddle -> http://jsfiddle.net/p33x5L3t/1/
dom
documentation -> https://datatables.net/reference/option/domThis works for me:
I know it is too long, but if some one still facing this issue, then please do the following, it is an alternate answer.
Add 'pageLength' inside buttons as follows: