ijlyttle / bsplus

Shiny and R Markdown addons to Bootstrap 3
http://ijlyttle.github.io/bsplus/
Other
146 stars 23 forks source link

generalize bs_accordion_sidebar() #29

Open ijlyttle opened 7 years ago

ijlyttle commented 7 years ago

Following @sctyner's question about nesting an accordion-sidebar, I think there may be a way to do this by generalizing the technique.

I am reasonably sure that I understand what she was asking, in terms of arranging the elements - let me try to describe:

Let us think first of only the sidebar panel, which would behave as a "traditional" accordion. The first challenge is to make sure that we can nest accordions. This should be straightforward to test using the existing bs_accordion() family.

Let us think now of the main panel. In the main panel, we want to display only the elements associated with the displayed (open) elements in the sidebar panel.