闪亮的条件面板()不起作用

问题描述 投票:0回答:0

我有一个 checkboxGroupInput,只有在选择了特定的单选按钮“大陆”时才会显示。我尝试使用 conditionalPanel,但它不起作用,它从不显示复选框。

这是我的代码,我不明白问题出在哪里...

app.r

tabItem( tabName = "3dGlobe",
               fluidRow(
                 column( width = 4,
                   box(
                     radioButtons("filters", "Filters" , choiceNames = list("All","Some continents") , choiceValues = list("all","continent")),
                     conditionalPanel(
                       condition = "input.filters == 'continent'",
                       uiOutput("continentCheckbox")
                    )
                   )
                  ),
                 column( width = 1,
                  globeOutput("globe", width = "500px" , height = "500px")
                 )
                )
      )

在“server.r”中我这样做:

output$continentCheckbox <- renderUI({
      radioButtons("continent", "choce continent:",choices = c("Europe", "Asia", "Africa"))
  })
r shiny shinydashboard
© www.soinside.com 2019 - 2024. All rights reserved.