Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 402
Almis Avatar asked Sep 17 '15 12:09

Almis


1 Answers

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

like image 135
davidkonrad Avatar answered Sep 18 '22 23:09

davidkonrad