How to hide “Showing 1 of N Entries” with the dataTables.js library

前端 未结 5 2165
囚心锁ツ
囚心锁ツ 2020-12-13 05:23

How do you remove the \"Showing 1 of N entries\" line of text on a dataTable (that is when using the javascript library dataTables? I think I was looking for something along

5条回答
  •  眼角桃花
    2020-12-13 05:55

    If you also need to disable the drop-down (not to hide the text) then set the lengthChange option to false

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

    Works for DataTables 1.10+

    Read more in the official documentation

提交回复
热议问题