material_collapsible: The material Collapsible UI Element

Description Usage Arguments Examples

Description

The material Collapsible UI Element

Usage

1
2
3
4
5
material_collapsible(inputId, cllist, class = "accordion",
  headercolor = "white", bodycolor = "white", color = NULL)

update_material_collapsible(inputId, cllist,
  session = shiny::getDefaultReactiveDomain())

Arguments

inputId

String. The input identifier used to access the value.

cllist

List. The collapsible element list. The list need to contain a 'name' and 'content' element, in adition could contain 'icon', 'badge' and 'active' (logical) elements.

class

String. A class type for UI Collapsible. Values should be 'accordion', 'expandable' or 'popout'.

headercolor

String. The color name of header. Leave empty for 'white' color. Visit http://materializecss.com/color.html for a list of available colors.

bodycolor

String. The color name of body. Leave empty for 'white' color. Visit http://materializecss.com/color.html for a list of available colors.

color

String. The color name of the text and icons. Leave empty for the 'teal lighten-1' color. Visit http://materializecss.com/color.html for a list of available colors.

session

Shiny default reactive domain.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
require(materializer)
material_collapsible(
inputId = "example_collapsible_menu",
  cllist = list(
    c(target = "tgt_1", name = "One"),
    c(target = "tgt_2", name = "Two"),
    c(target = "tgt_3", name = "Three", icon = "cloud"),
    c(target = "tgt_4", icon = "alarm")
 )
)

TuSKan/materializer documentation built on May 17, 2019, 6:35 p.m.