Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When integer value less than 60, set background color to green, otherwise, red.

Code Block
languagejs
{{renderer:function(instance, td, row, col, prop, value, cellProperties){console.log(value);if(parseInt(value)<60){td.innerHTML="<span style='color: white; background-color: green;'>"+value+"</span>";}else{td.innerHTML="<span style='color: white; background-color: red;'>"+value+"</span>";}}}}

...