I'm using cellClass in ui.grid to add the class of tomato.
cellClass: function(grid, row, col) {
if (grid.getCellValue(row,col) === 'confirmed') {
return 'green';
}
else {
return '';
}
}
},
How can I remove this class? I'm trying but I don't see a way to find the element with the green class so I can remove it.
$scope.confirm = function(rowEntity) {
confirmService.sendResponse(payload, idPart)
.success(function(result) {
if (rowEntity.entity.status.status !== "confirmed") {
remove 'green';
}
console.log('success ', result);
})
.error(function(error) {
console.log('failed ', error);
});
};