i am using rhandsontable.
i want to use change color function of rhandsontable were it will change color of changed cell to "RED" if condition is not satisfied . i am new to R and don't know how can i do it . can anyone please help me?
i am using rhandsontable.
i want to use change color function of rhandsontable were it will change color of changed cell to "RED" if condition is not satisfied . i am new to R and don't know how can i do it . can anyone please help me?
 
    
    For example, with the code below, all cells containing a numeric value >10 will be red:
        rhandsontable(df, height = 500) %>%
            hot_col(
                renderer = "             
                    function(instance, td, row, col, prop, value, cellProperties) {
                                Handsontable.renderers.NumericRenderer.apply(this, arguments);
                                if(value > 10) {
                                  td.style.backgroundColor = 'red';
                                }
                    }"
            )
