Description Usage Arguments Examples
Use this function to create tabs in your application.
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())
|
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. |
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")
)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.