如何将复选框值与事件绑定。以及如何访问相应的数据?
主页.ts
columns = [
{
field: 'reportingLocation',
headerName: 'Reporting Location '
},
{
field: 'country',
headerName: 'Country Name'
},
{
field: 'DEL',
headerName: 'DEL',
editable:true,
headerCheckboxSelection: true,
headerCheckboxSelectionFilteredOnly: true,
checkboxSelection: true
} ];
我有一个函数来获取行DEL=TRUE
deleteLocations(e) {
console.log(this.list);
e.preventDefault();
this.list
.filter((item: any) => {
return !!item.DEL;
})
.map(item => {
this.store.dispatch(new
LocationAndResponsibilityActions.OnLocationDelete(item.location_Id));
}); }
我无法访问DEL
值,使用 agggrid 复选框选择的正确方法是什么?