shinydashboardPlus (version 0.7.0)

carousel: AdminLTE2 carousel container

Description

This creates a carousel

Usage

carousel(..., id, indicators = TRUE, width = 6, .list = NULL)

Arguments

...

Slot for carouselItem

id

Carousel id. Must be unique.

indicators

Whether to display left and right indicators.

width

Carousel width. 6 by default.

.list

Should you need to pass carouselItem via lapply or similar, put these item here instead of passing them in ...

Examples

Run this code
# NOT RUN {
if (interactive()) {
 library(shiny)
 library(shinydashboard)
 shinyApp(
   ui = dashboardPagePlus(
     header = dashboardHeaderPlus(
      enable_rightsidebar = TRUE,
      rightSidebarIcon = "gears"
     ),
     sidebar = dashboardSidebar(),
     body = dashboardBody(
      carousel(
       id = "mycarousel",
       carouselItem(
        caption = "Item 1",
        tags$img(src = "http://placehold.it/900x500/3c8dbc/ffffff&text=I+Love+Bootstrap")
       ),
       carouselItem(
        caption = "Item 2",
        tags$img(src = "http://placehold.it/900x500/39CCCC/ffffff&text=I+Love+Bootstrap")
       )
      )
     ),
     rightsidebar = rightSidebar(),
     title = "Right Sidebar"
   ),
   server = function(input, output) { }
 )
}
# }

Run the code above in your browser using DataCamp Workspace