2015-12-09 25 views

回答

0

好吧,試試這個:

請務必設置你列在你的columnsDefs enableCellEdit: true,那麼你會想要做的線沿線的東西...

$scope.gridOptions.onRegisterApi = function(gridApi){ 
     //set gridApi on scope 
     $scope.gridApi = gridApi; 
     gridApi.edit.on.afterCellEdit($scope,function(rowEntity, colDef, newValue, oldValue) { 

     // do stuff here.... 

     }); 
    }; 

你可以找到更多信息這裏http://ui-grid.info/docs/#/tutorial/201_editable