在Angular UI ng-grid中关闭滚动?

在Angular UI ng-grid中关闭滚动?,第1张

在Angular UI ng-grid中关闭滚动

我最近遇到了同样的问题,并在https://groups.google.com/forum/#!topic/angular/KiBXP3eKCDY找到了解决方案

您想要

ng-grid
在拥有数据之后进行初始化

以下解决方案需要使用angular-ui:

<div ui-if="dataForGrid.length>0" ng-grid="gridOptions" ng-  />$scope.getTableStyle= function() {   var rowHeight=30;   var headerHeight=45;   return {      height: ($scope.dataForGrid.length * rowHeight + headerHeight) + "px"   };};


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5646461.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-16
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存