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

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

问题描述

我是 jQuery 新手.我在网格中使用了数据表,但不需要分页.

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

一页中有订单列表,我将它们显示在数据表网格中,但在底部我不想显示分页.有没有办法通过对 jQuery 库进行一些自定义来从数据表中删除或隐藏分页.

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 tried to customize it but I found very few methods to do it..

提前致谢.

推荐答案

您应该将 "bPaginate": false, 包含到您传递给构造函数参数的配置对象中.如此处所示:http://datatables.net/release-datatables/examples/basic_init/filter_only.html

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

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

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