tabstripPanel: Create a tabstrip panel

Description Usage Arguments Examples

Description

Create a tabstrip panel that contains tabPanel elements. Similar to tabsetPanel, but optimized for small page sizes like mobile devices or the RStudio Viewer pane.

Usage

1
tabstripPanel(..., id = NULL, selected = NULL, between = NULL)

Arguments

...

tabPanel elements to include in the tabset.

id

If provided, you can use input$id in your server logic to determine which of the current tabs is active. The value will correspond to the value argument that is passed to tabPanel.

selected

The value (or, if none was supplied, the title) of the tab that should be selected by default. If NULL, the first tab will be selected.

between

A tag or list of tags that should be inserted between the content (above) and tabstrip (below).

Examples

1
2
3
4
5
6
7
8
9
library(shiny)

tabstripPanel(
  tabPanel("Data",
    selectInput("dataset", "Data set", ls("package:datasets"))),
  tabPanel("Subset",
    uiOutput("subset_ui")
  )
)

rstudio/shinygadgets documentation built on May 28, 2019, 7:54 a.m.