11
我想知道是否可以在UI上并排显示复选框选项。我已经尝试了一些示例代码:R Shiny:并排复选框
shinyUI(pageWithSidebar(
headerPanel("Example"),
sidebarPanel(
checkboxInput(inputId = "simOption", label = "Historical Data",value=TRUE),
checkboxInput(inputId = "simOption2", label = "Historical Data 2",value=TRUE)
),
mainPanel(
tabsetPanel(
tabPanel("Heatmap",
plotOutput("temp")
),
tabPanel("About"),
id="tabs"
)#tabsetPanel
)#mainPane;
))
我是新来引导,但如果它是一个单选按钮闪亮?你如何应用上述框架?单选按钮是相当棘手的,因为它是与单独的功能相反的单一功能。谢谢, – user1234440
https://github.com/plataformatec/simple_form/issues/649暗示也许你在描述什么。您可以使用基本标签构建模块构建自己的控件。 – user1609452
除非你非常懒惰像我这样的情况下你可以'gsub' – user1609452