如何在没有分页装饰的情况下呈现ngTable? [英] How to render an ngTable without the pagination decorations?
问题描述
在我的小型AngularJS应用程序中,我使用ngTable库呈现多个表格。只有一个人可以使用分页。其他人将永远适合不到一页。每个呈现的ngTable似乎都在表格下方添加了10 25 50 100选择器。对于我的大多数桌子来说,这是浪费的空间,并且不起作用。
最近修复了这个问题( https://github.com/esvit/ng-table/issues/6 )这段代码应该为你做(从相同的git问题复制):
pre $ $ scope.tableParams = new ngTableParams(
count:items.length //隐藏页面
},{
counts:[] //隐藏页面大小
});
In my small AngularJS app, I render several tables using the ngTable library. Only one could use pagination. The others will always fit on less than a page. Every rendered ngTable seems to add the "10 25 50 100" selector below the table. For most of my tables, this is wasted space and is nonfunctional. How can I remove that section and get that space back?
This was recently fixed (https://github.com/esvit/ng-table/issues/6) This code should do it for you (copied from same git issue):
$scope.tableParams = new ngTableParams({
count: items.length // hides pager
},{
counts: [] // hides page sizes
});
这篇关于如何在没有分页装饰的情况下呈现ngTable?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!