I noticed the NG Grid has something called a 'rowStyleClassDataprovider'. So I thought I'd put a calculation in there to return a style class that is just the color red. And it didn't work.
- Code: Select all
function calc_expired()
{
var today = new Date()
if( protocol_date_expiration < today ){
return 'grid-protocol-expired'
}
else {
return '';
}
}
- Code: Select all
.grid-protocol-expired{
background-color: @status-error;
}
I even hard coded the coloring just to make sure it wasn't a problem with .less variables.
Is this not the way to color a specific row / record in the Grid? Is there another way to do so?