| topTabs | R Documentation |
Tabs that go directly inside UINav(). Pick one by how much the tab holds:
triLevelTab(title, ..., icon = NULL)
biLevelTab(title, ..., icon = NULL, id = title, height = cardHeight())
sidebarLevelTab(
title,
sidebarElements = NULL,
...,
icon = NULL,
height = cardHeight()
)
singleTab(title, ..., icon = NULL, height = cardHeight())
title |
Tab name shown in the navigation bar. |
... |
Contents. See the table above. |
icon |
Optional icon shown before the title, for example
|
id |
ID of the row of sub tabs, used with |
height |
Height of the card holding the tab's contents. Change the
default for every tab with |
sidebarElements |
A |
| Function | Holds | Put inside it |
singleTab() | one page | inputs and outputs |
sidebarLevelTab() | one page with a sidebar | inputs and outputs |
biLevelTab() | a row of sub tabs | subTab(), subSidebarTab() |
triLevelTab() | a drop-down menu of tabs with sub tabs | triSubTab(), triSubSidebarTab() |
A 'bslib' navigation panel or menu.
singleTab("About", shiny::p("This app explores the Titanic data."))
sidebarLevelTab("Plot",
sidebarElements = list(navButton("makePlot", "Make plot")),
navOutputPlot("thePlot")
)
biLevelTab("Explore",
subTab("Summary", navOutputTable("summaryTable")),
subTab("Plots", navOutputPlot("summaryPlot"))
)
triLevelTab("Analyses",
triSubTab("Group A",
subTab("Table", navOutputTable("tableA"))
),
triSubTab("Group B",
subTab("Table", navOutputTable("tableB"))
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.