starBlock {shinydashboardPlus} | R Documentation |
AdminLTE2 starBlock
Description
Create a starBlock item (ideal for rating)
Usage
starBlock(value, max = 5, color = "yellow")
Arguments
value |
Current score. Should be positive and lower or equal to max. |
max |
Maximum number of stars by block. |
color |
Star color: see
|
Author(s)
David Granjon, dgranjon@ymail.com
Examples
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) { }
)
}
[Package shinydashboardPlus version 2.0.4 Index]