shiny (version 0.9.1)

navbarPage: Create a page with a top level navigation bar

Description

Create a page that contains a top level navigation bar that can be used to toggle a set of tabPanel elements.

Usage

navbarPage(title, ..., id = NULL, header = NULL, footer = NULL,
  inverse = FALSE, collapsable = FALSE, fluid = TRUE, responsive = TRUE,
  theme = NULL)

navbarMenu(title, ..., icon = NULL)

Arguments

Value

A UI defintion that can be passed to the shinyUI function.

Details

The navbarMenu function can be used to create an embedded menu within the navbar that in turns includes additional tabPanels (see example below).

See Also

tabPanel, tabsetPanel

Examples

Run this code
shinyUI(navbarPage("App Title",
  tabPanel("Plot"),
  tabPanel("Summary"),
  tabPanel("Table")
))

shinyUI(navbarPage("App Title",
  tabPanel("Plot"),
  navbarMenu("More",
    tabPanel("Summary"),
    tabPanel("Table")
  )
))

Run the code above in your browser using DataLab