Using ui-grid constants to disable scrollbars

后端 未结 3 962
北恋
北恋 2021-02-02 09:48

With the latest version of ui-grid (v3.0.0-rc.16) it is possible to turn the horizontal and vertical scrollbar off seperately. I got this working by exchanging



        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-02 10:15

    Got my answer on github:

    All I needed to do was to pass uiGridConstants to my controller like this:

    angular.module('myApp').controller('myCtrl',function($scope,uiGridConstants) {
        ...
    
        $scope.gridOptions.enableHorizontalScrollbar = uiGridConstants.scrollbars.NEVER;
    
        ...
    })
    

提交回复
热议问题