Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R shiny scroll wellPanel

Tags:

r

shiny

Is it possible to scroll a wellPanel or column?

I have a simple ui scheme here.

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

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

I would like to make some of those wellPanels (with forms inside) scrollable.

I tried adding this piece of code seen below under 'sidebarPanel(', but that made my whole sidebarpanel to scroll. I am looking to make a 'wellPanel' or a 'column' scrollable.

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

Thanks

like image 211
rmf Avatar asked Mar 26 '15 23:03

rmf


1 Answers

Thanks to Carlos Sanchez, here is the answer:

wellPanel(id = "tPanel",style = "overflow-y:scroll; max-height: 600px",
other-stuff..)
like image 154
rmf Avatar answered Oct 14 '22 10:10

rmf