Using ui-grid constants to disable scrollbars

后端 未结 3 966
北恋
北恋 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:25

    With John Papa style:

    ExampleController.$inject = ['$scope', 'uiGridConstants'];
    function ExampleController($scope, uiGridConstants) {
        var vm = this;
    
        vm.gridOptions = {
            enableHorizontalScrollbar : uiGridConstants.scrollbars.NEVER,
            enableVerticalScrollbar   : uiGridConstants.scrollbars.NEVER
        };
    }
    

提交回复
热议问题