Create a starBlock item (ideal for rating)
starBlock(value, max = 5, color = "yellow")
value | Current score. Should be positive and lower or equal to max. |
---|---|
max | Maximum number of stars by block. |
color | Star color: see
|
David Granjon, dgranjon@ymail.com
if (interactive()) { library(shiny) library(shinydashboard) library(shinydashboardPlus) shinyApp( ui = dashboardPage( dashboardHeader(), dashboardSidebar(), dashboardBody( box( title = "Star example", starBlock(5), starBlock(5, color = "olive"), starBlock(1, color = "maroon"), starBlock(3, color = "teal") ) ), title = "starBlock" ), server = function(input, output) { } ) }