ijlyttle/bsplus

bs_accordion default behaviour on top panel

paristj opened this issue · 1 comments

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

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