collapseEntry | R Documentation |
Create a collapsible container panel item that is enclosed by a list
collapseEntry(
...,
title,
collapsed = FALSE,
color.off = "darken",
color.on = "red"
)
... |
content of the collapsible container |
title |
title of the collapsible container |
collapsed |
whether the panel is collapsed or not |
color.off |
color of collapsible icon when hover off |
color.on |
color of collapsible icon when hover on |
Get color choices using quickcode:::color.choice
An list containing the title and content of a collapsible container
if (interactive()) {
library(shiny)
library(card.pro)
card.pro(
title = "Sample collapsible",width = 4,
collapsibleGroup = list(
collapseEntry(title = "Summary 1", collapsed = TRUE, "Convallis aesus."),
collapseEntry(title = "Summary 2", "eiusmod tempor incididunt")
)
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.