Add two aliases of updateTabsetPanel(): updateNavbarPage() and updateNavlistPanel()

https://groups.google.com/d/msg/shiny-discuss/8VctqPqeurw/uAQIBvA1CpAJ
This commit is contained in:
Yihui Xie
2015-07-02 01:37:14 -05:00
parent a57e037b05
commit a5e64274a2
7 changed files with 26 additions and 2 deletions

View File

@@ -180,6 +180,8 @@ export(updateCheckboxGroupInput)
export(updateCheckboxInput)
export(updateDateInput)
export(updateDateRangeInput)
export(updateNavbarPage)
export(updateNavlistPanel)
export(updateNumericInput)
export(updateRadioButtons)
export(updateSelectInput)

3
NEWS
View File

@@ -16,6 +16,9 @@ shiny 0.12.1.9xxx
* Added `width` option to Shiny's input functions. (#589, #834)
* Added two alias functions of `updateTabsetPanel()` to update the selected tab:
`updateNavbarPage()` and `updateNavlistPanel()`. (#881)
shiny 0.12.1
--------------------------------------------------------------------------------

View File

@@ -174,7 +174,8 @@ pageWithSidebar <- function(headerPanel,
#' menu within the navbar that in turns includes additional tabPanels (see
#' example below).
#'
#' @seealso \code{\link{tabPanel}}, \code{\link{tabsetPanel}}
#' @seealso \code{\link{tabPanel}}, \code{\link{tabsetPanel}},
#' \code{\link{updateNavbarPage}}
#'
#' @examples
#' shinyUI(navbarPage("App Title",
@@ -560,6 +561,7 @@ 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}}
#' @examples
#' shinyUI(fluidPage(
#'

View File

@@ -185,6 +185,13 @@ updateTabsetPanel <- function(session, inputId, selected = NULL) {
session$sendInputMessage(inputId, message)
}
#' @rdname updateTabsetPanel
#' @export
updateNavbarPage <- updateTabsetPanel
#' @rdname updateTabsetPanel
#' @export
updateNavlistPanel <- updateTabsetPanel
#' Change the value of a number input on the client
#'

View File

@@ -88,6 +88,7 @@ shinyUI(navbarPage("App Title",
))
}
\seealso{
\code{\link{tabPanel}}, \code{\link{tabsetPanel}}
\code{\link{tabPanel}}, \code{\link{tabsetPanel}},
\code{\link{updateNavbarPage}}
}

View File

@@ -52,4 +52,7 @@ shinyUI(fluidPage(
)
))
}
\seealso{
\code{\link{tabPanel}}, \code{\link{updateNavlistPanel}}
}

View File

@@ -1,10 +1,16 @@
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/update-input.R
\name{updateTabsetPanel}
\alias{updateNavbarPage}
\alias{updateNavlistPanel}
\alias{updateTabsetPanel}
\title{Change the selected tab on the client}
\usage{
updateTabsetPanel(session, inputId, selected = NULL)
updateNavbarPage(session, inputId, selected = NULL)
updateNavlistPanel(session, inputId, selected = NULL)
}
\arguments{
\item{session}{The \code{session} object passed to function given to