Include ratings in shiny UI
shinyRatings.Rd
Include ratings in shiny UI
Arguments
- inputId
The input slot that will be used to access the value of number of stars.
- no_of_stars
Number of stars that you want to display on the UI.
- default
Number of stars selected by default.
- disabled
Keep number of stars as fixed? Disable the option of changing values
Examples
if(interactive()){
library(shiny)
library(shinyRatings)
ui <- fluidPage(
shinyRatings('star'),
textOutput('text')
)
server <- function(input, output, session) {
output$text <- renderText({paste("No. of stars : ", input$star)})
}
shinyApp(ui, server)
}