Learn R Programming

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

shinyjs (version 0.3.1)

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' 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.3.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Dean Attali

Last Published

January 6th, 2016

Functions in shinyjs (0.3.1)

colourInput

Create a colour input control
classFuncs

Add/remove CSS class
hidden

Initialize a Shiny tag as hidden
reset

Reset input elements to their original values
disabled

Initialize a Shiny input as disabled
messageFuncs

Show a message
onevent

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

Set up a Shiny app to use shinyjs
runjs

Run JavaScript code
delay

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

Add inline CSS
extendShinyjs

Extend shinyjs by calling your own JavaScript functions
js

Call user-defined JavaScript functions from R
text

Change the text inside an element
stateFuncs

Enable/disable an input element
shinyjs

shinyjs
updateColourInput

Change the value of a colour input
visibilityFuncs

Display/hide an element
runExample

Run shinyjs examples