tab_panel: Tab Panel

Description Usage Arguments Value See Also Examples

View source: R/navbarPage.R

Description

Create a tab panel

Usage

1
2
3
4
5
6
7
tab_panel(
  title,
  ...,
  value = title,
  icon = NULL,
  type = "bottom attached segment"
)

Arguments

title

Display title for tab

...

UI elements to include within the tab

value

The value that should be sent when navbar_menu reports that this tab is selected. If omitted and navbar_menu has an id, then the title will be used.

icon

Optional icon to appear on the tab. This attribute is only valid when using a tab_panel within a navbar_page.

type

Change depending what type of tab is wanted. Default is bottom attached segment.

Value

A tab that can be passed to navbar_menu.

See Also

navbar_menu

Examples

1
2
3
4
5
navbar_menu(
  tab_panel("Plot", shiny::plotOutput("plot")),
  tab_panel("Summary", shiny::verbatimTextOutput("summary")),
  tab_panel("Table", shiny::tableOutput("table"))
)

fomantic.plus documentation built on Jan. 25, 2022, 1:15 a.m.