Open warnes opened 1 year ago
I'm sorry that I don't have time to properly create a pull request for this.
I've created pull request #113 to add this functionality through the new function bs_accordion_multi
.
Thanks for this cool enhancement. I added the function (bs_multi_open) in the .txt to my shiny script. When I set multi = TRUE and open = c(1,3), the first and third panels are initially open, but when I click on a new panel, only the new panel remains open. Is that the intended behavior? Or are all three panels supposed to remain open until the user clicks on an open panel to close it?
I need to allow multiple panels to be open at one time.
The attached file provides the function
bs_multi_open
, which modifies the HTML generated bybs_accordion
to (1) enable/disable multiple panels to be open at one time and (2) specify which (if any) panels are initially open.This solves #35.
bs_multi_open.txt
Example use:
Which yields: