How to hide "Display 1 of N records" using dataTables.js library

How to delete a line of text "Display 1 of N records" in dataTable (that is, when the javascript library data table is used? I think I was looking for something in this direction ...

$('#example').dataTable({ "showNEntries" : false }); 

Pretty sure it's simple, but can't find it in the docs.

+81
javascript datatables
Oct 17 '13 at 22:12
source share
3 answers

You can remove it using the bInfo option ( http://datatables.net/usage/features#bInfo )

  $('#example').dataTable({ "bInfo" : false }); 

Update: Since Datatables 1.10. * This option can be used as info , bInfo still works in the current nightly build (1.10.10).

+215
18 Oct '13 at 2:47
source share
— -

To disable the drop-down list, set the lengthChange parameter to false .

 $('#datatable').dataTable( { "lengthChange": false } ); 

Works for DataTables 1. 10+

Read more in the official documentation

+7
Aug 20 '17 at 17:46 on
source share

Now , this seems to work:

 $('#example').DataTable({ "info": false }); 

it hides that div as a whole

0
Sep 05 '19 at 0:55
source share



All Articles