Learn R Programming

bsTools (version 0.1.0)

bs_collapse: Create a Bootstrap collapse

Description

Create a Bootstrap collapse

Usage

bs_collapse(
  id,
  button_label,
  collapse_content,
  button_class = "btn btn-primary",
  div_class = "collapse"
)

Arguments

id

A string, the id to use for the collapse div.

button_label

A string, the text to display in the button controlling the collapsible content.

collapse_content

A string, the HTML to display or collapse.

button_class

A string, the class added to the button controlling the collapse.

div_class

A string, the class added to the div wrapping the collapsible content.

Value

A string of HTML.

Examples

Run this code
# NOT RUN {
bs_collapse(
id = "collapse1",
button_label = "Click to Expand",
collapse_content = p("Hello")
)
# }

Run the code above in your browser using DataLab