2015-11-23 68 views
0

工作,我想告訴和捕捉最後一個單元格編輯,但它並不像在提供example in official docs角UI API網不捕獲最後一個單元格編輯

$scope.gridOptions.onRegisterApi = function(gridApi) { 
    $scope.gridApi = gridApi; 
    gridApi.edit.on.afterCellEdit($scope, function(rowEntity, colDef, newValue, oldValue) { 
     $scope.msg.lastCellEdited = 'edited row id:' + rowEntity.id + ' Column:' + colDef.name + ' newValue:' + newValue + ' oldValue:' + oldValue; 
     $scope.$apply(); 
    }); 
}; 

誰能告訴我什麼是錯的或工作叉my plunk並提供一個工作示例的鏈接?

我使用AngularUI電網3.0

回答

0

你需要保持$scope.gridOptions.onRegisterApi控制器內部。檢查this了。

相關問題