accordion {shidashi} | R Documentation |
Generates an 'accordion' tab-set
Description
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.
Usage
accordion(
...,
id = rand_string(prefix = "accordion-"),
class = NULL,
style_header = NULL,
style_body = NULL,
env = parent.frame(),
extras = list(),
root_path = template_root()
)
accordion_operate(
id,
itemId,
item_title,
method = c("expand", "collapse", "toggle"),
session = shiny::getDefaultReactiveDomain()
)
Arguments
... |
'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 |
itemId |
|
item_title |
|
method |
operation, choices are |
session |
|
Value
'shiny.tag.list'
'HTML' tags
See Also
Examples
if(interactive()) {
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."
),
accordion_item(
title = "Input Group B",
textInput("input_2", "Input 2"),
footer = actionButton("btn1", "OK"),
collapsed = FALSE
)
)
}
[Package shidashi version 0.1.6 Index]