Collapse panels allow you to reduce clutter in your Shiny app by making
panels of information that open and close with a user's click. Any type of
content can go in a collapse panel. Standard Bootstrap styling options are
available.
Details
Collapses are designed to mimic tabsetPanel in their implementation.
Start with bsCollapse to create a panel group, then fill it with panels
using bsCollapsePanel.
bsCollapse acts as an input, so you can retrieve which panels are open
from the input object passed to the function in shinyServer.
updateCollapse can be used within your server logic to open/close
collapse panels or to change their style.
Components
bsCollapse
A container for holder the individual panels created by bsCollapsePanel.
bsCollapsePanel
Creates an individual Collapse Panel that resides within a bsCollapse.
updateCollapse
Used within your server logic to open/close collapse panels or change their style.
Changes
style is a new option that wasn't available in previous versions of
shinyBS.
Note
Run bsExample("Collapses") for an example
of Collapses functionality.