Rstudio brilliant collapsible sidePanel

I want to make the most of the screen width mainPanelfor a vibrant Rstudio webpage.

On my web page is sidePanelused to select options for visualizing the results in mainPanel.

I would like to know what I can do to maximize usable space mainPanel.

For example, I would like to have the minimize / expand option for sidePanel, so that when minimizing, the entire width of the window is used mainPanel.

Any ideas?

Edition:

It turns out to be a sidePanellittle more complicated, but I can make two different ones bootstrapPageand have one on top for a choice that affects the one that is below. Then put the folding button on it. I will return it in return if someone does not have a more elegant one.

+3
source share
2 answers

Only a partial solution, but ... if you wrap a div below the content or your sidebarPanel

div(id = "demo", class = "collapse in", 

)

and then click on the button on the main panel as follows

HTML("<button type='button' class='btn btn-danger' data-toggle='collapse' data-target='#demo'>simple collapsible</button>"),

You can collapse the contents of the sidebar. It does not expand the main panel to use the full screen.

+4
source

, (, "set parameters" ), conditionalPanel. . .: https://shiny.rstudio.com/reference/shiny/0.13.2/conditionalPanel.html

0

All Articles