subTabs: Sub tabs

subTabsR Documentation

Sub tabs

Description

Tabs that go inside a biLevelTab() or a triLevelTab():

Usage

triSubTab(title, ..., icon = NULL, id = title, height = cardHeight())

subTab(title, ..., value = title)

subSidebarTab(title, sidebarElements = NULL, ..., value = title, icon = NULL)

triSubSidebarTab(
  title,
  sidebarElements = NULL,
  ...,
  icon = NULL,
  id = title,
  height = cardHeight()
)

subTwoColPage(leftSide, rightSide)

Arguments

title

Tab name shown in the tab strip or menu.

...

Contents. See the table above.

icon

Optional icon shown before the title.

id

ID of the row of sub tabs inside the tab. Defaults to the title with spaces removed.

height

Height of the card holding the tab's contents.

value

ID of the tab, used with showNavTabs(), hideNavTabs() and bslib::nav_select(). Defaults to the title with spaces removed.

sidebarElements

A list() of inputs for the sidebar.

leftSide, rightSide

Contents of the left and right columns. Wrap several items in shiny::tagList().

Details

Function Goes inside Holds
subTab() biLevelTab(), triSubTab(), triSubSidebarTab() inputs and outputs
subSidebarTab() biLevelTab(), triSubTab(), triSubSidebarTab() a sidebar plus inputs and outputs
triSubTab() triLevelTab() subTab(), subSidebarTab()
triSubSidebarTab() triLevelTab() a sidebar plus subTab(), subSidebarTab()

subTwoColPage() isn't a tab: it splits a page into two equal columns and can go inside any tab.

Value

A 'bslib' navigation panel, or for subTwoColPage() a column layout.

Examples

biLevelTab("Explore",
  subSidebarTab("PCA",
    sidebarElements = list(navButton("runPCA", "Create PCA")),
    navOutputPlotly("pcaPlot")
  ),
  subTab("Table",
    subTwoColPage(navOutputTable("tableLeft"), navOutputTable("tableRight"))
  )
)

EZRShiny documentation built on Oct. 10, 2026, 5:08 p.m.