bs4Stars {bs4Dash} | R Documentation |
AdminLTE3 stars
Description
Create a block of stars (ideal for rating)
Usage
bs4Stars(value, max = 5, color = "warning")
starBlock(value, max = 5, color = "warning")
Arguments
value |
Current value. Should be positive and lower or equal to max. |
max |
Maximum number of stars by block. |
color |
Star color. Valid colors are listed below:
|
Author(s)
David Granjon, dgranjon@ymail.com
Examples
if(interactive()){
library(shiny)
library(bs4Dash)
shinyApp(
ui = dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody(
box(
title = "Star example",
starBlock(5),
starBlock(5, color = "fuchsia"),
starBlock(1, color = "danger"),
starBlock(3, color = "secondary")
)
),
title = "starBlock"
),
server = function(input, output) { }
)
}
[Package bs4Dash version 2.3.3 Index]