accordion | R Documentation |
Generates an 'accordion' tab-set that only one tab is expanded at a time. This feature is experimental and has bugs in some situations. Please use it at your own risk.
accordion( ..., id = rand_string(), class = NULL, style_header = NULL, style_body = NULL, env = parent.frame(), extras = list(), root_path = template_root() )
... |
'accordion' items, generated by |
id |
the element id, must be unique |
class |
the additional 'HTML' class |
style_header |
additional 'CSS' styles for header |
style_body |
additional 'CSS' styles for content body |
env |
environment to evaluate |
extras |
key-value pairs that overrides the parameters in
|
root_path |
see |
'shiny.tag.list'
'HTML' tags
accordion_item
library(shiny) library(shidashi) accordion( id = "input-set", accordion_item( title = "Input Group A", textInput("input_1", "Input 1"), collapsed = FALSE, footer = "Anim pariatur cliche reprehenderit dolor brunch.", tools = list( as_badge("New|badge-danger") # card_tool(widget = "collapse") ) ), accordion_item( title = "Input Group B", textInput("input_2", "Input 2"), footer = actionButton("btn1", "OK"), collapsed = FALSE, tools = list( card_tool(widget = "link", icon = shiny::icon("question-circle"), href = "#") ) ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.