diff --git a/DESCRIPTION b/DESCRIPTION index 48d8e8b..854235e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: shinyjs Title: Easily Improve the User Experience of Your Shiny Apps in Seconds -Version: 2.1.0.9003 +Version: 2.1.0.9004 Authors@R: person("Dean", "Attali", email = "daattali@gmail.com", role = c("aut", "cre"), @@ -11,7 +11,7 @@ Description: Perform common useful JavaScript operations in Shiny apps that will its original value, delaying code execution by a few seconds, and many more useful functions for both the end user and the developer. 'shinyjs' can also be used to easily call your own custom JavaScript functions from R. -URL: https://deanattali.com/shinyjs/ +URL: https://deanattali.com/shinyjs/, https://github.com/daattali/shinyjs BugReports: https://github.com/daattali/shinyjs/issues Depends: R (>= 3.1.0) diff --git a/R/shinyjs-package.R b/R/shinyjs-package.R new file mode 100644 index 0000000..75af9bb --- /dev/null +++ b/R/shinyjs-package.R @@ -0,0 +1,13 @@ +#' @keywords internal +"_PACKAGE" + +#' Defunct functions in shinyjs +#' +#' \itemize{ +#' \item{\bold{colourInput()}} {Moved to the \code{colourpicker} package.} +#' \item{\bold{updateColourInput()}} {Moved to the \code{colourpicker} package.} +#' \item{\bold{colourPicker()}} {Moved to the \code{colourpicker} package.} +#' } +#' +#' @name shinyjs-defunct +NULL diff --git a/R/shinyjs.R b/R/shinyjs.R deleted file mode 100644 index 546baf2..0000000 --- a/R/shinyjs.R +++ /dev/null @@ -1,17 +0,0 @@ -#' shinyjs -#' -#' Easily improve the user experience of your Shiny apps in seconds -#' -#' \code{shinyjs} lets you perform common JavaScript operations that enhance the user experience in -#' applications without having to know any JavaScript. Examples include: hiding an -#' element, disabling an input, resetting an input back to its original value, -#' delaying code execution by a few seconds, and many more useful functions. -#' \code{shinyjs} also includes a colour picker widget, a colour picker RStudio -#' addin, and can also be used to easily run your own custom JavaScript functions -#' from R. -#' -#' View the \href{https://deanattali.com/shinyjs/}{shinyjs website} for more details -#' and to see a demo. -#' @docType package -#' @name shinyjs -NULL diff --git a/man/shinyjs-defunct.Rd b/man/shinyjs-defunct.Rd new file mode 100644 index 0000000..7e4ed13 --- /dev/null +++ b/man/shinyjs-defunct.Rd @@ -0,0 +1,12 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/shinyjs-package.R +\name{shinyjs-defunct} +\alias{shinyjs-defunct} +\title{Defunct functions in shinyjs} +\description{ +\itemize{ +\item{\bold{colourInput()}} {Moved to the \code{colourpicker} package.} +\item{\bold{updateColourInput()}} {Moved to the \code{colourpicker} package.} +\item{\bold{colourPicker()}} {Moved to the \code{colourpicker} package.} +} +} diff --git a/man/shinyjs-package.Rd b/man/shinyjs-package.Rd new file mode 100644 index 0000000..7beb766 --- /dev/null +++ b/man/shinyjs-package.Rd @@ -0,0 +1,24 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/shinyjs-package.R +\docType{package} +\name{shinyjs-package} +\alias{shinyjs} +\alias{shinyjs-package} +\title{shinyjs: Easily Improve the User Experience of Your Shiny Apps in Seconds} +\description{ +Perform common useful JavaScript operations in Shiny apps that will greatly improve your apps without having to know any JavaScript. Examples include: hiding an element, disabling an input, resetting an input back to its original value, delaying code execution by a few seconds, and many more useful functions for both the end user and the developer. 'shinyjs' can also be used to easily call your own custom JavaScript functions from R. +} +\seealso{ +Useful links: +\itemize{ + \item \url{https://deanattali.com/shinyjs/} + \item \url{https://github.com/daattali/shinyjs} + \item Report bugs at \url{https://github.com/daattali/shinyjs/issues} +} + +} +\author{ +\strong{Maintainer}: Dean Attali \email{daattali@gmail.com} (\href{https://orcid.org/0000-0002-5645-3493}{ORCID}) + +} +\keyword{internal} diff --git a/man/shinyjs.Rd b/man/shinyjs.Rd deleted file mode 100644 index dd4526a..0000000 --- a/man/shinyjs.Rd +++ /dev/null @@ -1,21 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/shinyjs.R -\docType{package} -\name{shinyjs} -\alias{shinyjs} -\title{shinyjs} -\description{ -Easily improve the user experience of your Shiny apps in seconds -} -\details{ -\code{shinyjs} lets you perform common JavaScript operations that enhance the user experience in -applications without having to know any JavaScript. Examples include: hiding an -element, disabling an input, resetting an input back to its original value, -delaying code execution by a few seconds, and many more useful functions. -\code{shinyjs} also includes a colour picker widget, a colour picker RStudio -addin, and can also be used to easily run your own custom JavaScript functions -from R. - -View the \href{https://deanattali.com/shinyjs/}{shinyjs website} for more details -and to see a demo. -} diff --git a/man/stateFuncs.Rd b/man/stateFuncs.Rd index 016327b..aa31ee0 100644 --- a/man/stateFuncs.Rd +++ b/man/stateFuncs.Rd @@ -30,7 +30,7 @@ be enabled when the \code{condition} is \code{TRUE}, and disabled otherwise.} Enable or disable an input element. A disabled element is not usable and not clickable, while an enabled element (default) can receive user input. Any shiny input tag can be used with these functions.\cr\cr -\strong{\code{enable}} enables an input, \strong{\code{disable}} disabled +\strong{\code{enable}} enables an input, \strong{\code{disable}} disables an input,\strong{\code{toggleState}} enables an input if it is disabled and disables an input if it is already enabled.\cr\cr If \code{condition} is given to \code{toggleState}, that condition will be used