Learn R Programming

bsplus (version 0.1.1)

bs_panel: Panel

Description

This function makes it a little easier to make Bootstrap-friendly panels; it wraps the [htmltools::tags()] function for panels

Usage

bs_panel(id = NULL, panel_type = c("default", "primary", "success", "info",
  "warning", "danger"), heading = NULL, body = NULL, ..., footer = NULL)

Arguments

id

character, unique identifier

panel_type

character, one of the standard Bootstrap types

heading

character (HTML) or [htmltools::tagList()], content for the heading

body

character (HTML) or [htmltools::tagList()], content for the body

...

character (HTML) or [htmltools::tagList()], other content

footer

character (HTML) or [htmltools::tagList()], content for the footer

Value

[htmltools::tag()], `<button/>`

See Also

http://getbootstrap.com/css/#panels

Examples

Run this code
# NOT RUN {
library("htmltools")

bs_panel(
  panel_type = "primary",
  heading = tags$h3("title"),
  body = tags$p("Some very important content")
)
# }

Run the code above in your browser using DataLab