Almis Almis - 3 months ago 13
Javascript Question

Show entries dropdown disappear when using export tools

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'
]
} );
});


jsfiddle

Answer

You just lack the l flag in dom. l for "length changing input control".

dom: 'lBfrtip'

will make the dropdown to reappear.

updated fiddle -> http://jsfiddle.net/p33x5L3t/1/
dom documentation -> https://datatables.net/reference/option/dom