collapseEntry {card.pro} | R Documentation |
Create a collapsible container panel item
Description
Create a collapsible container panel item that is enclosed by a list
Usage
collapseEntry(
...,
title,
collapsed = FALSE,
color.off = "darken",
color.on = "red"
)
Arguments
... |
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 |
Details
Get color choices using quickcode:::color.choice
Value
An list containing the title and content of a collapsible container
Examples
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")
)
)
}
[Package card.pro version 2.3.0 Index]