View source: R/utils_toggle_panel.R
toggle_panel_ui | R Documentation |
A toggle panel is a panel with show/hide functionality by clicking on the title and additional info by clicking on an info button. 'toggle_panel_ui()' creates the UI definition for the panel.
toggle_panel_ui( id, ..., label = NULL, icon = NULL, tag_fn = NULL, init_visible = TRUE )
id |
The UI element ID (technically the ID of the title) |
... |
Panel content |
label |
The panel title |
icon |
An icon to display to the right of the title |
tag_fn |
A tag to wrap the label and icon |
init_visible |
Should the panel initialize as visible or invisible? |
A UI element
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.