Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function conditionalNumeric(hot, td, row, column, prop, value, cellProperties) {
- // Apply base numeric rendering
- Handsontable.renderers.NumericRenderer.apply(this, arguments);
- if (row === getSummaryRows().percentUnderOverOptioned) {
- if (value < 80 || value > 120) td.classList.add("spreadsheet-red-cell");
- if ((value >= 80 && value <= 95) || (value >= 105 && value <= 120))
- td.classList.add("spreadsheet-amber-cell");
- if (value > 95 && value < 105) td.classList.add("spreadsheet-green-cell");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment