fieldSets | R Documentation |
Shiny apps can get cluttered with many inputs. This method wraps sets of
fields in either a bsCollapse
from shinyBS
(if installed) or
a simple div element with a title and class 'shinyngsFieldset' (which can
then be used for styling)
fieldSets(id, fieldset_list, open = NULL, use_shinybs = TRUE)
id |
ID field to apply to the overall container |
fieldset_list |
A named list, each element containing one or more fields. |
open |
Only applicable for output with shinyBS, controls which panels are open by default. In most cases all should be left open (the default), since shiny doesn't receive the inputs of fields in collapsed elements. |
use_shinybs |
Use collapsible panels from shinyBS if installed |
list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.