Learn R Programming

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

shinyjs (version 0.1.0)

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, and many more useful functions. Even if you do know JavaScript, 'shinyjs' can be used as convenience functions to avoid dealing with message passing and writing JavaScript code. 'shinyjs' can also be used to easily run your own custom JavaScript functions from R.

Copy Link

Version

Install

install.packages('shinyjs')

Monthly Downloads

81,440

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Dean Attali

Last Published

August 13th, 2015

Functions in shinyjs (0.1.0)

disabled

Initialize a Shiny input as disabled
js

Call user-defined JavaScript functions from R
inlineCSS

Add inline CSS
classFuncs

Add/remove CSS class
stateFuncs

Enable/disable an input element
extendShinyjs

Extend shinyjs by calling your own JavaScript functions
onclick

Run R code when an element is clicked
reset

Reset input elements to their original values
runjs

Run JavaScript code
colourInput

Create a colour input control
hidden

Initialize a Shiny tag as hidden
useShinyjs

Set up a Shiny app to use shinyjs
visibilityFuncs

Display/hide an element
text

Change the text inside an element
updateColourInput

Change the value of a colour input
resettable

Resettable (deprecated)
messageFuncs

Show a message
shinyjs

shinyjs
runExample

Run shinyjs examples