| glassTabPanel | R Documentation |
Used as child arguments inside glassTabsUI(). Each call defines one tab
button and its associated content pane.
glassTabPanel(value, label, ..., icon = NULL, selected = FALSE)
value |
A unique string identifier for this tab (e.g. |
label |
The text shown on the tab button. |
... |
UI elements for the pane content. |
icon |
Optional icon shown to the left of the tab label. Accepts
any htmltools-compatible tag, e.g. |
selected |
Logical. Whether this tab starts selected. Only the first
|
A list of class "glassTabPanel" consumed by glassTabsUI().
Other glass tabs:
appendGlassTab(),
disableGlassTab(),
glassTabCondition(),
glassTabsOutput(),
glassTabsServer(),
glassTabsUI(),
renderGlassTabs(),
showGlassTab(),
updateGlassTabBadge(),
updateGlassTabsUI()
# Plain text label
overview_tab <- glassTabPanel("overview", "Overview",
shiny::h3("Welcome"),
shiny::p("This is the overview tab.")
)
# With a Shiny icon
data_tab <- glassTabPanel("data", "Data",
icon = shiny::icon("table"),
shiny::p("Data content here.")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.