R shiny scroll wellPanel面板

R shiny scroll wellPanel

是否可以滚动 wellPanel 或列?

我这里有一个简单的ui方案。

shinyUI(
  fluidPage(
    sidebarLayout(
      sidebarPanel(
        wellPanel(),
        wellPanel()

        ),
        mainPanel(
          fluidRow(
            column(3,
             wellPanel()
            )
          )
        )
    )
  )
)

我想让其中一些 wellPanels(里面有表格)可以滚动。

我尝试添加下面 'sidebarPanel(' 下看到的这段代码,但这使我的整个侧边栏面板滚动。我希望制作 'wellPanel' 或 'column' 可滚动。

tags$head(tags$style(
  type = 'text/css',
  'form-group { max-height: 600px; overflow-y: auto; }')

谢谢

感谢 Carlos Sanchez,答案如下:

wellPanel(id = "tPanel",style = "overflow-y:scroll; max-height: 600px",
other-stuff..)