💡 Easily improve the user experience of your Shiny apps in seconds
reset()
with no arguments (#222)removeEvent()
function which removes events added to HTML elements with onclick()
or onevent()
(#244)disable()
did not work on nested download buttons (#223)extendShinyjs()
functions don't overwrite native {shinyjs} functions (#230)extendShinyjs()
, the functions
parameter must always be provided.extendShinyjs()
, the script
path parameter now behaves like any other Shiny web resource, which means it cannot be loaded from the local file system. The path must be discoverable by the browser, so it either needs to be a public URL, inside a www
folder, or available via addResourcePath()
.refresh()
function (#205)asis
parameter to reset()
function, which works like it does in all other functions that support asis
(#146)extendShinyjs()
now works with any web URL or any resource path (#201)reset()
didn't work when a sliderInput was initialized with value=NULL
(#207)V8
as a package dependency.This update was 2 years in the making because it required a lot of testing by users to ensure none of these features cause any regression bugs in real apps.
includeShinyjs
parameter in runcodeUI()
is now deprecatedselector
argument instead of an id
argument didn't work (#175)click()
now works with download buttons (#198)asis
parameter to any function that takes an ID. When asis=TRUE
, the ID will not be namespaced when inside a module (#118)id
parameter to runcode()
, allowing it to work inside Shiny modules (#184)onevent()
returns the offsetX
and offsetY
event propertiesonevent()
accepts a properties
parameter that allows the user to retrieve additional properties that are not whitelisted by default (#159)hide()
/show()
now only bubble up the DOM tree to the nearest input container if the current element is an input (#153)useShinyjs()
side effects and about including shinyjs
in packages (#182)colourInput
-related functions are now defunct because they are now in the colourpicker
packageclick()
function that simulates a user clicking on a buttondelay()
and reset()
functionsreset()
wasn't working on checkboxes/select inputs that had a comma in the value (#130)disabled()
on certain non-standard inputs (such as shinyFiles
) had strange behaviour (#120)logjs()
+showLog()
wasn't working when app first runsreset()
wasn't working on file inputs with an ID that contained a dot (#140)runcodeUI()
and runcodeServer()
functions that you can add to your app in order to run arbitrary R code interactivelyshowLog()
function which lets you redirect all JavaScript logging statements to the R console, to make it easier and quicker to debug apps without having to open the JS console (#88)onclick
and onevent
now support callback functions, and the JavaScript Event object is passed to the callback (#92)reset()
function now works on file inputsalert()
as an alias for info()
colourpicker
)selector
argument to html()
functionreset()
support for passwordInput
and textAreaInput
(#78)