Description Usage Arguments Author(s) See Also Examples
carousel creates a carousel container to display media content.
carouselItem creates a carousel item to insert in a carousel
1 2 3 4 5 6 7 |
... |
Element such as images, iframe, ... |
id |
Unique carousel id. |
indicators |
Whether to display left and right indicators. |
width |
Carousel width. Between 1 and 12. |
.list |
Should you need to pass carouselItem via lapply or similar, put these item here instead of passing them in ... |
caption |
Item caption. |
active |
Whether the item is active or not at start. |
David Granjon, dgranjon@ymail.com
Other boxWidgets:
attachmentBlock()
,
bs4CardLabel()
,
bs4CardSidebar()
,
bs4SocialCard()
,
bs4Timeline()
,
cardDropdown()
,
cardProfile()
,
descriptionBlock()
,
userPost()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | if(interactive()){
library(shiny)
library(bs4Dash)
shinyApp(
ui = dashboardPage(
header = dashboardHeader(),
sidebar = dashboardSidebar(),
body = dashboardBody(
carousel(
id = "mycarousel",
carouselItem(
caption = "Item 1",
tags$img(src = "https://placehold.it/900x500/3c8dbc/ffffff&text=I+Love+Bootstrap")
),
carouselItem(
caption = "Item 2",
tags$img(src = "https://placehold.it/900x500/39CCCC/ffffff&text=I+Love+Bootstrap")
)
)
),
title = "Carousel"
),
server = function(input, output) { }
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.