Description Usage Arguments Examples
UI content can be placed in cards to organize items on a page.
1 2 3 4 5 6 7 | material_card(inputId, content = NULL, title = NULL, img = NULL,
footer = NULL, class = "stacked", header = TRUE, tabs = NULL,
depth = NULL, horizontal = FALSE, hoverable = TRUE,
bgcolor = NULL, ...)
update_material_card(inputId, content = NULL, title = NULL,
footer = NULL, session = shiny::getDefaultReactiveDomain())
|
inputId |
String. The input identifier used to access the value. |
content |
tagList. The UI elements to place in card content |
title |
String. The title of the card |
img |
String. A material_img tagList |
footer |
tagList. The UI elements to place in the card footer |
class |
String. The aditional class to the card. Values should be stacked or panel. |
header |
Logical. Option to include a header in the card. |
tabs |
tgList. A material_tabs object to insert inside the card |
depth |
Integer. The amount of depth of the card. The value should be between 0 and 5. Leave empty for the default depth. |
horizontal |
Logical. Should the card be on horizontal orientation?' |
hoverable |
Loginal. Enable/disable hover effect. |
bgcolor |
String. The background color name of the card. Leave empty for the 'teal lighten-1' color. Visit http://materializecss.com/color.html for a list of available colors. |
... |
tagList. additional tag elements |
session |
Shiny default reactive domain. |
1 2 3 4 5 6 7 | require(materializer)
material_card(
inputId = "exampleCard",
title = "Example Card",
content = shiny::h5("Card Content"),
footer = shiny::hr()
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.