【问题标题】:How to make selectInput choices overlay dq_accordion?如何使 selectInput 选择覆盖 dq_accordion?
【发布时间】:2020-07-28 20:19:50
【问题描述】:

在以下闪亮的应用程序中,selectInput 中的选项被dq_accordion 隐藏。

library(shiny)
library(dqshiny)

ui <- fluidPage(
    dq_accordion(
      id = "foo",
      titles = list(
        "Something",
        "Something else"
      ),

      contents = tagList(
        tagList(
          selectInput("test", 
                      "Test", 
                      choices = names(mtcars))
        ),
        tagList(
          checkboxInput('foo2', "foo2")
        )
      )
    )
)
server <- function(input, output){}

shinyApp(ui, server)

当用户点击selectInput 时,如何使选择覆盖dq_accordion

我尝试使用this answer中提供的CSS代码但没有成功。

【问题讨论】:

    标签: r shiny


    【解决方案1】:
    ui <- fluidPage(
      tags$head(
        tags$style(HTML(".selectize-control {position: static;}"))
      ),
      ......
    

    【讨论】:

      猜你喜欢
      • 2017-10-04
      • 2017-06-05
      • 2012-11-15
      • 2020-12-09
      • 1970-01-01
      • 2020-04-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多