如何在jquery datatable中禁用show entries属性 [英] how to disable show entries property in jquery datatable

查看:2010
本文介绍了如何在jquery datatable中禁用show entries属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用jquery。我使用jquery数据表插件启用表视图。 Iam需要禁用show entries属性。任何人都可以帮助我,我需要禁用该属性?



我遵循了这个链接,但没有帮助。我不知道哪个js必须被修改。
此处



感谢提前

解决方案

这对我来说很有用。使用您建立的html中的代码

  $(document).ready(function(){
var oTable = $('#example')。dataTable({
aaData:orgContent,
bLengthChange:false //用于隐藏属性
});

根据最新的文档 bLengthChange 在上面的代码段应该是 lengthChange


I have just started working with jquery. I used jquery data-table plugin for enabling table-view. Iam in need to disable show entries property. Can anyone help me in which js i need to disable the property?

I had followed this link but doesn't help. I don't know which js has to be modified. here

Thanks in Advance

解决方案

This had worked for me. Use the code in your html you have built

$(document).ready(function () {
        var oTable = $('#example').dataTable({                    
            "aaData": orgContent,
            "bLengthChange": false //used to hide the property  
          });

As per latest documentation bLengthChange in above piece of code should be lengthChange.

这篇关于如何在jquery datatable中禁用show entries属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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