gpt4 book ai didi

javascript - 如何在没有分页装饰的情况下呈现 ngTable?

转载 作者:技术小花猫 更新时间:2023-10-29 11:46:44 29 4
gpt4 key购买 nike

在我的小型 AngularJS 应用程序中,我使用 ngTable 库渲染了几个表格。只有一个人可以使用分页。其他人将永远适合不到一页。每个呈现的 ngTable 似乎都在表格下方添加了“10 25 50 100”选择器。对于我的大多数 table 来说,这是浪费空间而且没有用。如何删除该部分并取回该空间?

最佳答案

这是最近修复的(https://github.com/esvit/ng-table/issues/6)这段代码应该为你做(从同一个 git 问题复制):

$scope.tableParams = new ngTableParams({
count: items.length // hides pager
},{
counts: [] // hides page sizes
});

关于javascript - 如何在没有分页装饰的情况下呈现 ngTable?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22426832/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com