Description Usage Arguments Author(s) Examples
Create a dq box group which automatically collapses all other boxes whenever one box is opened.
1 | create_dq_box_group(session, ...)
|
session |
shiny session object |
... |
box ids to be combined to one group |
richard.kunze
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## Only run examples in interactive R sessions
if (interactive()) {
library(shiny)
shinyApp(
ui = fluidPage(
fluidRow(
column(6,
dq_box("Random Input1", dq_space(), "End of Content", id = "box1",
title = "Box1", width = 12, open_callback = TRUE),
dq_box("Random Input2", dq_space(), "End of Content", id = "box2",
title = "Box2", width = 9, collapsed = TRUE, open_callback = TRUE),
dq_box("Random Input3", dq_space(), "End of Content", id = "box3",
title = "Box3", width = 12, collapsed = TRUE, open_callback = TRUE)
)
)
),
server = function(input, output, session) {
create_dq_box_group(session, "box1", "box2", "box3")
}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.