闪亮的SliderTextInput使可见的所有文本标签

时间:2019-09-26 11:36:19

标签: css r shiny

if (interactive()) {
library("shiny")
library("shinyWidgets")

ui <- fluidPage(
  br(),
  sliderTextInput(
    inputId = "mySliderText",
    label = "Month range slider:",
    choices = month.name,
    selected = month.name[c(4, 7)]
  ),
  verbatimTextOutput(outputId = "result")
)

server <- function(input, output, session) {
  output$result <- renderPrint(str(input$mySliderText))
}

shinyApp(ui = ui, server = server)

}

来源: enter image description here

我想在滑块上看到所有的月份名称标签。 谢谢

0 个答案:

没有答案