R: AdminLTE2 accordion container

accordion {shinydashboardPlus} | R Documentation

## AdminLTE2 accordion container

### Description

Create an accordion container

### Usage

    accordion(...)

### Arguments

`...` | slot for accordionItem.

### Author(s)

David Granjon, dgranjon@ymail.com

### Examples

    if (interactive()) {
     library(shiny)
     library(shinydashboard)
     shinyApp(
      ui = dashboardPage(
        dashboardHeader(),
        dashboardSidebar(),
        dashboardBody(
         box(
          title = "Accordion Demo",
          accordion(
            accordionItem(
              id = 1,
              title = "Accordion Item 1",
              color = "danger",
              collapsed = TRUE,
              "This is some text!"
            ),
            accordionItem(
              id = 2,
              title = "Accordion Item 2",
              color = "warning",
              collapsed = FALSE,
              "This is some text!"
            ),
            accordionItem(
              id = 3,
              title = "Accordion Item 3",
              color = "info",
              collapsed = FALSE,
              "This is some text!"
            )
          )
         )
        ),
        title = "Accordion"
      ),
      server = function(input, output) { }
     )
    }

[Package shinydashboardPlus version 0.6.0 Index]