accordion | R Documentation |
This is a modified version of bs4Dash::accordion()
.
accordionItem to be inserted in a accordion container. This is a modified
version of bs4Dash::accordionItem()
.
Change the selected value of an accordion input on the client. Copied from
bs4Dash::updateAccordion()
.
accordion(..., id, width = 12) accordionItem( ..., title = NULL, icon = NULL, status = NULL, collapsed = TRUE, solidHeader = TRUE, bg = NULL, class = NULL ) updateAccordion(id, selected, session = getDefaultReactiveDomain())
... |
slot for accordionItem |
id |
unique accordion id |
width |
the grid-system width of the accordion |
title |
Optional title. |
icon |
optional icon |
status |
The status of the item. This determines the item's background color. Valid statuses are defined as follows:
|
collapsed |
If TRUE, start collapsed. This must be used with
|
solidHeader |
Should the header be shown with a solid color background? |
bg |
background color |
class |
additional classes to apply to the parent card element |
selected |
Index of the newly selected accordionItem. |
session |
Shiny session object. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.