Learn R Programming

⚠️There's a newer version (2.1.0) of this package.Take me there.

shinyjs (version 0.5.2)

Perform Common JavaScript Operations in Shiny Apps using Plain R Code

Description

Perform common JavaScript operations in Shiny 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. '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.

Copy Link

Version

Install

install.packages('shinyjs')

Monthly Downloads

74,018

Version

0.5.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Dean Attali

Last Published

March 27th, 2016

Functions in shinyjs (0.5.2)

shinyjs

shinyjs
classFuncs

Add/remove CSS class
js

Call user-defined JavaScript functions from R
onevent

Run R code when an event is triggered on an element
extendShinyjs

Extend shinyjs by calling your own JavaScript functions
runExample

Run shinyjs examples
visibilityFuncs

Display/hide an element
colourInput

Create a colour input control
runjs

Run JavaScript code
html

Change the HTML (or text) inside an element
delay

Execute R code after a specified number of milliseconds has elapsed
updateColourInput

Change the value of a colour input
messageFuncs

Show a message
colourPicker

Colour picker gadget
disabled

Initialize a Shiny input as disabled
hidden

Initialize a Shiny tag as hidden
stateFuncs

Enable/disable an input element
useShinyjs

Set up a Shiny app to use shinyjs
inlineCSS

Add inline CSS
reset

Reset input elements to their original values