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

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

问题描述

如何删除数据表上的显示 N 个条目中的 1 个"文本行(即使用 javascript 库 dataTables 时?我想我正在寻找这些方面的内容...

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.

推荐答案

您可以使用 bInfo 选项将其删除 (http://datatables.net/usage/features#bInfo)

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

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

更新:由于 Datatables 1.10.* 此选项可用作 infobInfo 在当前夜间构建 (1.10.10) 中仍然有效.

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天全站免登陆