material_tabs: Place UI content within a tab

Description Usage Arguments Examples

Description

Use this function to create tabs in your application.

Usage

1
2
3
4
5
material_tabs(inputId, tabs, ..., active = NULL, incard = FALSE,
  color = NULL, bgcolor = NULL)

update_material_tabs(inputId, active = NULL,
  session = shiny::getDefaultReactiveDomain())

Arguments

inputId

String. The input identifier used to access the value.

tabs

Named vector. The tab display names and corresponding tab ids.

...

tagList. The material_tab_content elements

active

logical Which tab should be actived

incard

Logical. This tabs willinsert in a card ?

color

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

bgcolor

String. The hex code background color of the tabs. Leave blank for the default 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
11
12
13
14
15
require(materializer)
material_tabs(
  tabs = c(
    "Example Tab 1" = "example_tab_1",
    "Example Tab 2" = "example_tab_2"
  ),
  material_tab_content(
    inputId = "example_tab_1",
    shiny::h5("Content of Example Tab 1")
  ),
  material_tab_content(
    inputId = "example_tab_2",
    shiny::h5("Content of Example Tab 2")
  )
)

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