R Shiny: Side by Side Checkbox

前端 未结 2 826
隐瞒了意图╮
隐瞒了意图╮ 2021-02-05 21:54

I was wondering if its possible to display the check box option side by side on the UI. Some sample code that I\'ve tried:

shinyUI(pageWithSidebar(
  headerPanel         


        
2条回答
  •  你的背包
    2021-02-05 22:50

    You can use checkboxGroupInput with inline = TRUE param:

    checkboxGroupInput(inputId = "simOption", label = "",
                       choices = c("Historical Data" = TRUE,
                                   "Historical Data 2" = TRUE),
                       inline = TRUE)
    

提交回复
热议问题