Re: [shinyapps-users] Is it possible to scroll a wellPanel or column?

836 views
Skip to first unread message

Tareef Kawaf

unread,
Mar 27, 2015, 11:47:35 AM3/27/15
to Roy Francis, shiny-...@googlegroups.com
This is more of a shiny question than a shinyapps.io question.  Moving to the shiny-discuss list.



On Fri, Mar 27, 2015 at 11:45 AM, Roy Francis <royma...@gmail.com> wrote:

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

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/053ee45d-410c-4622-9482-c568e504c5cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Carlos Sánchez

unread,
Mar 30, 2015, 2:26:17 PM3/30/15
to shiny-...@googlegroups.com, royma...@gmail.com
Hi,

You can get a scrollable wellpanel like this:

wellPanel(id = "tPanel",
               style
= "overflow:scroll; overflow-y: hidden",
               whatever
-you-want-to-put-inside)



In this case, it is only scrollable in the x-direction but modify the css accordingly.

Carlos

Roy Francis

unread,
Mar 30, 2015, 5:01:10 PM3/30/15
to shiny-...@googlegroups.com, royma...@gmail.com
Hi Carlos,
I modified it like so:

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

and it works as I intended.
Thanks.
Reply all
Reply to author
Forward
0 new messages