let $this = this;
onRegisterApi: (gridApi) => {
$this.gridApi = gridApi;
//单点行选中时触发
$this.gridApi.selection.on.rowSelectionChanged($this.$scope, function (row, event) {
//row为单行数据
row.entity;
});
//全选事件enableSelectAll(在grid上选中全选时触发)
$this.gridApi.selection.on.rowSelectionChangedBatch($this.$scope, function (allRow, event) {
//allRow所有grid中的数据
});
},