我希望我的网格单元能够处理点击事件&显示弹出窗口。
例如,如果我点击员工ID列,则弹出窗口应该包含该员工的详细信息
答案 0 :(得分:0)
这里有一些被称为触发事件的函数
onRegisterApi: function(gridApi) {
gridApi.infiniteScroll.on.needLoadMoreData($scope, getDataDown);
gridApi.infiniteScroll.on.needLoadMoreDataTop($scope, getDataUp);
gridApi.edit.on.cancelCellEdit($scope, function(rowEntity, colDef) {
cancelCellEdit(rowEntity, colDef);
});
gridApi.edit.on.beginCellEdit($scope, function(rowEntity, colDef, newValue, oldValue) {
validateCell(rowEntity);
});
gridApi.edit.on.afterCellEdit($scope, function(rowEntity, colDef, newValue, oldValue) {
abortInvalidValue(rowEntity, newValue, oldValue);
afterCellEdit(rowEntity, colDef, newValue, oldValue);
});
controller.gridApi = gridApi;
},