Learn R Programming

card.pro (version 2.3.0)

collapseEntry: 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"
)

Value

An list containing the title and content of a collapsible container

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

Examples

Run this code
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")
  )
)
}

Run the code above in your browser using DataLab