bs_carousel: Create a Bootstrap carousel

Description Usage Arguments Value Examples

View source: R/bootstrap.R

Description

Create a Bootstrap carousel

Usage

1
2
3
4
5
6
7
8
bs_carousel(
  id,
  items = list(),
  carousel_class = "carousel slide",
  inner_class = "carousel-inner",
  item_class = "carousel-item",
  controls = TRUE
)

Arguments

id

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

items

A list, entries should be HTML to display in the carousel.

carousel_class

A string, the class of the div wrapping the carousel content.

inner_class

A string, the class of the div wrapping the carousel items.

item_class

A string, the class of the div wrapping each carousel item.

controls

TRUE/FALSE, if TRUE, adds code to display arrows to click through the carousel.

Value

A string of HTML.

Examples

1
2
3
4
5
6
7
8
bs_carousel(
id = "c1",
items = list(
  h1("First slide"),
  h1("Second slide"),
  h1("Third Slide")
)
)

bsTools documentation built on Feb. 9, 2021, 5:06 p.m.

Related to bs_carousel in bsTools...