powered by
Create a Bootstrap collapse
bs_collapse( id, button_label, collapse_content, button_class = "btn btn-primary", div_class = "collapse" )
A string, the id to use for the collapse div.
A string, the text to display in the button controlling the collapsible content.
A string, the HTML to display or collapse.
A string, the class added to the button controlling the collapse.
A string, the class added to the div wrapping the collapsible content.
A string of HTML.
# NOT RUN { bs_collapse( id = "collapse1", button_label = "Click to Expand", collapse_content = p("Hello") ) # }
Run the code above in your browser using DataLab