Change the color of current cell/column in GRID based on condition change .
Change the color of current cell/column in GRID based on condition change .
step 1) Create 3 Custom Event on Grid Column or Page Item ( Give name as Change , blur , focus)
step 2) Action:- Execute Java Script
step 3) Below code based on your requirement
var a = apex.item(this.triggeringElement).getValue();
console.log('value is ',a);
if (a =='A')
{
$(this.triggeringElement).css("background-color", "lightblue");
}
else if (a =='C')
{
$(this.triggeringElement).css("background-color", "red");
}
else if (a =='N')
{
$(this.triggeringElement).css("background-color", "green");
}
Comments
Post a Comment