如何隐藏表格中的水平滚动(ngGrid)?

时间:2015-02-13 13:25:21

标签: css angularjs scrollbar ng-grid

我正在使用ngGrid表,但我不知道如何删除水平滚动?只是“溢出-x:隐藏”不成功

我的表:

.row(ng-controller="MyCtrl")
.form.form-group
   .col-sm-8
       div.gridStyle(
        id="myTable"
        ng-grid="myTableGrid"
        )
   .col-sm-2
   .col-sm-2

角度代码:

    $scope.myTableGrid = {
      data: 'data',
      multiSelect: true,
      showSelectionCheckbox: true,
      columnDefs:[

        {field: 'program_name', displayName: 'Program name'},
        {field: 'date', displayName: 'Date'}

      ],


  }

表的测试数据:

 $scope.data=  [
                {id:10, program_name:'program1', date: '13.02.2015 8:52:45'} ,
                {id:102, program_name:'program2', date: '13.02.2015 9:16:23'} ,
                {id:130, program_name:'program3', date: '13.02.2015 9:20:40'} ,
                {id:102, program_name:'program4', date: '13.02.2015 9:16:23'} ]

0 个答案:

没有答案