ijlyttle / bsplus

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

bs_accordion default behaviour on top panel #45

Closed paristj closed 7 years ago

paristj commented 7 years ago

The default behaviour on bs_accordian is to expand the top accordion element.

E.g., bs_accordion(id = "meet_the_beatles") %>% bs_append(title = "John Lennon", content = "Rhythm guitar, vocals") %>% bs_append(title = "Paul McCartney", content = "Bass guitar, vocals")

will leave John Lennon expanded. I would rather have all panels collapsed. Is it possible to change the default behaviour to collapsed, or even add a parameter to bs_append to have collapsed/expanded?

Happy to pull and change:) Will need to change class="panel-collapse collapse in" to class="panel-collapse collapse" for top panel

paristj commented 7 years ago

Dang! just saw the request by daatali on an earlier thread. closing now