如何删除datatable中的分页 [英] how to remove pagination in datatable
问题描述
在一个页面中有一个订单列表,我在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屋!