G'day,
This valueBox is excellent. I thought to suggest an improvement that allows a user to use any color instead of only the Shiny validated colours. It only requires one extra line of code, the removal of the validateColors line, and one additional param. The extra param is "background". and here is the extra code in context:
G'day, This valueBox is excellent. I thought to suggest an improvement that allows a user to use any color instead of only the Shiny validated colours. It only requires one extra line of code, the removal of the validateColors line, and one additional param. The extra param is "background". and here is the extra code in context:
boxContent <- div( class = "small-box", style = paste0("color: ", color, "; background-color: ", background, ";"), div(
and that is it. Now the valueBox can be used within a corporate colour scheme or with whatever colors you want.