如何删除datatable中的分页 [英] how to remove pagination in datatable

查看:1701
本文介绍了如何删除datatable中的分页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在jQuery中是新的。我已经使用Datatables在网格,但不需要分页。



在一个页面中有一个订单列表,我在Datatable网格中显示它们,但是在底部我不想显示分页。
有没有办法通过在jQuery库上使用一些定制来从数据表中删除或隐藏分页。





我已经尝试自定义它,但是我发现很少的方法



提前感谢

解决方案

bPaginate:false,加入到传递给构造函数参数的配置对象中。如下所示: http://datatables.net/release-datatables/examples/basic_init /filter_only.html


I am new in jQuery. I have used Datatables in grid but need not pagination.

There is a list of orders in one page and I show them in a Datatable grid but in bottom I do not want to show pagination. Is there any way to remove or hide pagination from the data table by using a bit customization on the jQuery library.

I have tried to customize it but I found very few methods for do it..

Thanks in advance.

解决方案

You should include "bPaginate": false, into the configuration object you pass to your constructor parameters. As seen here: http://datatables.net/release-datatables/examples/basic_init/filter_only.html

这篇关于如何删除datatable中的分页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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