Learn R Programming

nextGenShinyApps (version 2.1)

accordionItem: Generate an accordion item

Description

Embed an accordion item within an accordion

Usage

accordionItem(
  ...,
  title = "A title",
  status = c("default", "primary", "secondary", "info", "success", "danger", "warning"),
  icon = NULL
)

Value

A list of properties for an accordion item

Arguments

...

The elements to include within the body of the particular accordion

title

The title of the accordion item

status

Set the header background using either of "default", "primary", "secondary", "info", "success", "danger", "warning"

icon

Include an icon to the left of the title for the accordion item

Examples

Run this code
if (interactive()) {
accordionItem(
  title = "Accordion 2",
  icon = shiny::icon("cog"),
  "Auctor neque etiam non."
)
}

Run the code above in your browser using DataLab