Angular UI Grid click row

前端 未结 4 1388
太阳男子
太阳男子 2020-12-31 05:47

I have a list of items in an Angular UI Grid. When I click a row, I want to be taken to a different page. (In other words, each row in the grid will be a link.)

I im

4条回答
  •  天命终不由人
    2020-12-31 05:55

      $scope.gridOptions.onRegisterApi = function( gridApi ) {
        $scope.gridApi = gridApi;
           gridApi.selection.on.rowSelectionChanged($scope,function(row){
            var msg = 'row selected ' + row.isSelected;
            //Open your link here.
          });
      };
    

    http://plnkr.co/edit/EO920wsxuqr3YU8931GF?p=preview

提交回复
热议问题