如何隐藏“显示N条目中的1个”与dataTables.js库 [英] How to hide "Showing 1 of N Entries" with the dataTables.js library

查看:377
本文介绍了如何隐藏“显示N条目中的1个”与dataTables.js库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何删除dataTable上的显示1条N条目行(即使用javascript库数据表时)?我想我正在寻找一些这样的行...

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

很确定这是一个简单的,但似乎在文档中找不到
Nick

解决方案

您可以使用 bInfo 选项( http://datatables.net/usage/features#bInfo

  $('#example')。dataTable({
bInfo:false
});
/ pre>

更新:
自Datatables 1.10。*此选项可用作 info bInfo 仍然适用于当前的夜间版本(1.10.10)。


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 these lines...

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

Pretty sure this is a simple one, but cannot seem to find it in the docs. Nick

解决方案

You can remove it with 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 current nightly build (1.10.10).

这篇关于如何隐藏“显示N条目中的1个”与dataTables.js库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆