| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/bootstrap.R |
| 3 |
\name{navlistPanel} |
| 4 |
\alias{navlistPanel} |
| 5 |
\title{Create a navigation list panel} |
| 6 |
\usage{ |
| 7 |
navlistPanel( |
| 8 |
..., |
| 9 |
id = NULL, |
| 10 |
selected = NULL, |
| 11 |
header = NULL, |
| 12 |
footer = NULL, |
| 13 |
well = TRUE, |
| 14 |
fluid = TRUE, |
| 15 |
widths = c(4, 8) |
| 16 |
) |
| 17 |
} |
| 18 |
\arguments{ |
| 19 |
\item{...}{\code{\link[=tabPanel]{tabPanel()}} elements to include in the navlist} |
| 20 |
|
| 21 |
\item{id}{If provided, you can use \verb{input$}\emph{\code{id}} in your |
| 22 |
server logic to determine which of the current navlist items is active. The |
| 23 |
value will correspond to the \code{value} argument that is passed to |
| 24 |
\code{\link[=tabPanel]{tabPanel()}}.} |
| 25 |
|
| 26 |
\item{selected}{The \code{value} (or, if none was supplied, the \code{title}) |
| 27 |
of the navigation item that should be selected by default. If \code{NULL}, |
| 28 |
the first navigation will be selected.} |
| 29 |
|
| 30 |
\item{header}{Tag or list of tags to display as a common header above all |
| 31 |
tabPanels.} |
| 32 |
|
| 33 |
\item{footer}{Tag or list of tags to display as a common footer below all |
| 34 |
tabPanels} |
| 35 |
|
| 36 |
\item{well}{\code{TRUE} to place a well (gray rounded rectangle) around the |
| 37 |
navigation list.} |
| 38 |
|
| 39 |
\item{fluid}{\code{TRUE} to use fluid layout; \code{FALSE} to use fixed |
| 40 |
layout.} |
| 41 |
|
| 42 |
\item{widths}{Column widths of the navigation list and tabset content areas |
| 43 |
respectively.} |
| 44 |
} |
| 45 |
\description{ |
| 46 |
Create a navigation list panel that provides a list of links on the left |
| 47 |
which navigate to a set of tabPanels displayed to the right. |
| 48 |
} |
| 49 |
\details{ |
| 50 |
You can include headers within the \code{navlistPanel} by including |
| 51 |
plain text elements in the list. Versions of Shiny before 0.11 supported |
| 52 |
separators with "------", but as of 0.11, separators were no longer |
| 53 |
supported. This is because version 0.11 switched to Bootstrap 3, which |
| 54 |
doesn't support separators. |
| 55 |
} |
| 56 |
\examples{ |
| 57 |
fluidPage( |
| 58 |
|
| 59 |
titlePanel("Application Title"), |
| 60 |
|
| 61 |
navlistPanel( |
| 62 |
"Header", |
| 63 |
tabPanel("First"), |
| 64 |
tabPanel("Second"), |
| 65 |
tabPanel("Third") |
| 66 |
) |
| 67 |
) |
| 68 |
} |
| 69 |
\seealso{ |
| 70 |
\code{\link[=tabPanel]{tabPanel()}}, \code{\link[=updateNavlistPanel]{updateNavlistPanel()}}, |
| 71 |
\code{\link[=insertTab]{insertTab()}}, \code{\link[=showTab]{showTab()}} |
| 72 |
} |