Rstudio shiny collapsible sidePanel

后端 未结 2 1608
日久生厌
日久生厌 2021-01-14 18:08

I want to maximise the usable screen width of the mainPanel for an Rstudio shiny webpage.

In my webpage, the sidePanel is used to select p

相关标签:
2条回答
  • 2021-01-14 18:19

    Perhaps you could work with a toggle-button (e.g. named "set parameters") which opens or closes a conditionalPanel. Such panel then disappears or pops-up when needed. See: https://shiny.rstudio.com/reference/shiny/0.13.2/conditionalPanel.html

    0 讨论(0)
  • 2021-01-14 18:43

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

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

    and then put a button in your 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 content of the sidebarPanel. This doesn't expand the main panel to take up all the screen however.

    0 讨论(0)
提交回复
热议问题