card_tabset | R Documentation |
To insert, remove, or active card panels, see
card_tabset_operate
.
card_tabset( ..., inputId = rand_string(), title = NULL, names = NULL, active = NULL, tools = NULL, footer = NULL, class = "", class_header = "", class_body = "", class_foot = "" )
... |
'HTML' tags; each tag will be placed into a card |
inputId |
the id of the card-set |
title |
the title of the card-set |
names |
title of the tabs |
active |
the title that will be active on load |
tools |
a list of tools or badges generated by
|
footer |
the footer element of the card-set |
class |
the 'HTML' class the of card-set |
class_header, class_body, class_foot |
additional 'HTML' class the of card header, body, and footer accordingly |
'HTML' tags
card_tabset_operate
library(shiny) library(shidashi) # Fake session to operate on card_tabset without shiny session <- MockShinySession$new() card_tabset( inputId = "card_set", title = "Cardset with Tools", `Tab 1` = p("Tab content 1"), class_body = "height-500", tools = list( as_badge( "New|badge-success" ), card_tool( widget = "collapse" ), card_tool( widget = "maximize" ) ) ) card_tabset_insert( inputId = "card_set", title = "Tab 2", p("New content"), session = session ) card_tabset_activate( inputId = "card_set", title = "Tab 1", session = session ) card_tabset_remove( inputId = "card_set", title = "Tab 2", session = session )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.