mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -04:00
updated docs
This commit is contained in:
@@ -285,7 +285,8 @@ pageWithSidebar <- function(headerPanel,
|
||||
#' example below).
|
||||
#'
|
||||
#' @seealso \code{\link{tabPanel}}, \code{\link{tabsetPanel}},
|
||||
#' \code{\link{updateNavbarPage}}
|
||||
#' \code{\link{updateNavbarPage}}, \code{\link{insertTab}},
|
||||
#' \code{\link{showTab}}
|
||||
#'
|
||||
#' @examples
|
||||
#' navbarPage("App Title",
|
||||
@@ -393,9 +394,13 @@ navbarPage <- function(title,
|
||||
)
|
||||
}
|
||||
|
||||
#' @param menuName A name that identifies this \code{navbarMenu}. This
|
||||
#' is needed if you want to insert/remove or show/hide an entire
|
||||
#' \code{navbarMenu}.
|
||||
#'
|
||||
#' @rdname navbarPage
|
||||
#' @export
|
||||
navbarMenu <- function(title, ..., icon = NULL) {
|
||||
navbarMenu <- function(title, ..., menuName = title, icon = NULL) {
|
||||
structure(list(title = title,
|
||||
tabs = list(...),
|
||||
iconClass = iconClass(icon)),
|
||||
@@ -634,7 +639,8 @@ tabPanel <- function(title, ..., value = title, icon = NULL) {
|
||||
#' Bootstrap 3.
|
||||
#' @return A tabset that can be passed to \code{\link{mainPanel}}
|
||||
#'
|
||||
#' @seealso \code{\link{tabPanel}}, \code{\link{updateTabsetPanel}}
|
||||
#' @seealso \code{\link{tabPanel}}, \code{\link{updateTabsetPanel}},
|
||||
#' \code{\link{insertTab}}, \code{\link{showTab}}
|
||||
#'
|
||||
#' @examples
|
||||
#' # Show a tabset that includes a plot, summary, and
|
||||
@@ -701,7 +707,9 @@ tabsetPanel <- function(...,
|
||||
#' supported. This is because version 0.11 switched to Bootstrap 3, which
|
||||
#' doesn't support separators.
|
||||
#'
|
||||
#' @seealso \code{\link{tabPanel}}, \code{\link{updateNavlistPanel}}
|
||||
#' @seealso \code{\link{tabPanel}}, \code{\link{updateNavlistPanel}},
|
||||
#' \code{\link{insertTab}}, \code{\link{showTab}}
|
||||
#'
|
||||
#' @examples
|
||||
#' fluidPage(
|
||||
#'
|
||||
|
||||
@@ -10,7 +10,7 @@ navbarPage(title, ..., id = NULL, selected = NULL,
|
||||
footer = NULL, inverse = FALSE, collapsible = FALSE, collapsable,
|
||||
fluid = TRUE, responsive = NULL, theme = NULL, windowTitle = title)
|
||||
|
||||
navbarMenu(title, ..., icon = NULL)
|
||||
navbarMenu(title, ..., menuName = title, icon = NULL)
|
||||
}
|
||||
\arguments{
|
||||
\item{title}{The title to display in the navbar}
|
||||
@@ -65,6 +65,10 @@ www directory). For example, to use the theme located at
|
||||
\item{windowTitle}{The title that should be displayed by the browser window.
|
||||
Useful if \code{title} is not a string.}
|
||||
|
||||
\item{menuName}{A name that identifies this \code{navbarMenu}. This
|
||||
is needed if you want to insert/remove or show/hide an entire
|
||||
\code{navbarMenu}.}
|
||||
|
||||
\item{icon}{Optional icon to appear on a \code{navbarMenu} tab.}
|
||||
}
|
||||
\value{
|
||||
@@ -98,5 +102,6 @@ navbarPage("App Title",
|
||||
}
|
||||
\seealso{
|
||||
\code{\link{tabPanel}}, \code{\link{tabsetPanel}},
|
||||
\code{\link{updateNavbarPage}}
|
||||
\code{\link{updateNavbarPage}}, \code{\link{insertTab}},
|
||||
\code{\link{showTab}}
|
||||
}
|
||||
|
||||
@@ -53,5 +53,6 @@ fluidPage(
|
||||
)
|
||||
}
|
||||
\seealso{
|
||||
\code{\link{tabPanel}}, \code{\link{updateNavlistPanel}}
|
||||
\code{\link{tabPanel}}, \code{\link{updateNavlistPanel}},
|
||||
\code{\link{insertTab}}, \code{\link{showTab}}
|
||||
}
|
||||
|
||||
@@ -44,5 +44,6 @@ mainPanel(
|
||||
)
|
||||
}
|
||||
\seealso{
|
||||
\code{\link{tabPanel}}, \code{\link{updateTabsetPanel}}
|
||||
\code{\link{tabPanel}}, \code{\link{updateTabsetPanel}},
|
||||
\code{\link{insertTab}}, \code{\link{showTab}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user