Open latlio opened 3 years ago
Hi
You should be able to add an icon by simply adding it to the title within a paragraph
bs_accordion() %>% bs_append(title = p(icon(“minus”),"test"))
If I could make a suggestion though @ijlyttle - further to adding an icon though it would be nice to have reactive icons that change depending on whether box is open or closed i.e. a ‘+’ sign when closed and a ‘-‘ when open. Maybe something along the lines of?
bs_accordion() %>% bs_append(title = "test", open = icon("minus"), closed = icon("plus"))
I've just created PR #113 which adds the necessary tags so that you can use CSS to add open/close icons to the bs_accordion
headlings. This is illustrated, using plain "+" and "-" characters in the man page example, shown in the comments to #113.
I'm not sure where in the pipeline
I can add a shiny icon