View source: R/mod_sidebar_utils.R
sidebarItem | R Documentation |
An item to add to the sidebar that opens up the settings for the selected component
sidebarItem(id, name, element, parent_id, ..., notes = NULL, active = FALSE)
id |
HTML ID to namespace on |
name |
Label to show on the closed accordion |
element |
Character string to let JS know what component has been chosen |
parent_id |
HTML ID of the accordion |
... |
Option inputs to add when expanding the accordion item |
notes |
A list of optional notes to include at the bottom of the settings |
active |
Logical, should the accordion item be open on start? Default set to |
A shiny.tag
element containing the component accordion item with all input settings
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.