Releases: daattali/shinyjs
Releases · daattali/shinyjs
shinyjs v2.1.0
- New feature: you can now reset all inputs on the page by calling
reset()with no arguments (#222) - New feature: Add a
removeEvent()function which removes events added to HTML elements withonclick()oronevent()(#244) - Fix bug:
disable()did not work on nested download buttons (#223) - Fix bug: Don't automatically namespace ID arguments in custom extendShinyjs functions (#229)
- Fix bug: ensure that
extendShinyjs()functions don't overwrite native {shinyjs} functions (#230)
shinyjs v2.0.0
- IMPORTANT CHANGE Remove commercial license (it only existed because some big companies asked for it, but it ended up being a bigger headache for 99% of the community)
- BREAKING CHANGE When using
extendShinyjs(), thefunctionsparameter must always be provided. - BREAKING CHANGE When using
extendShinyjs(), thescriptpath 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 awwwfolder, or available viaaddResourcePath(). - New feature: add a
refresh()function (#205) - New feature: add
asisparameter toreset()function, which works like it does in all other functions that supportasis(#146) - Fix bug:
extendShinyjs()now works with any web URL or any resource path (#201) - Fix bug:
reset()didn't work when a sliderInput was initialized withvalue=NULL(#207) - Remove
V8as a package dependency.
shinyjs v1.1
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.
BREAKING CHANGES
- The
includeShinyjsparameter inruncodeUI()is now deprecated
BUG FIXES
- shinyjs functions used inside a module with a
selectorargument instead of anidargument didn't work (#175) - shinyjs functions did not work with IDs that had a space in them (#176)
- non-selectize select inputs could not be disabled (#186)
click()now works with download buttons (#198)
NEW FEATURES
- added
asisparameter to any function that takes an ID. Whenasis=TRUE, the ID will not be namespaced when inside a module (#118) - added
idparameter toruncode(), allowing it to work inside Shiny modules (#184) onevent()returns theoffsetXandoffsetYevent propertiesonevent()accepts apropertiesparameter 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)
MISC
- Added documentation about
useShinyjs()side effects and about includingshinyjsin packages (#182)
shinyjs 1.0
BREAKING CHANGES
- shiny version 1.0.0 is now required
- All
colourInput-related functions are now defunct because they are now in thecolourpickerpackage
CHANGES
- Added
click()function that simulates a user clicking on a button - Moved default values of parameters to the R layer instead of being defined in javascript. This means that RStudio no longer complains of missing arguments and that autocompletion will show default values. (#80)
- Improve efficiency of
delay()andreset()functions - Improve documentation and website (https://deanattali.com/shinyjs)
BUG FIXES
- Bug fix:
reset()wasn't working on checkboxes/select inputs that had a comma in the value (#130) - Bug fix: using
disabled()on certain non-standard inputs (such asshinyFiles) had strange behaviour (#120) - Bug fix:
logjs()+showLog()wasn't working when app first runs - Bug fix:
reset()wasn't working on file inputs with an ID that contained a dot (#140)
shinyjs 0.9
MAJOR CHANGES
- showLog() no longer needs to be specified in useShinyjs(), and it can be used by just calling it in the server code once (#105)
- added support for shinyAce editor as the input for runcodeUI() (#93)
- add showElement()/hideElement()/toggleElement() and addCssClass etc functions as synonyms for functions that are masked by S4 (compromise for #81)
MINOR CHANGES
shinyjs 0.8
NEW FEATURES
- added
runcodeUI()andruncodeServer()functions that you can add to your app in order to run arbitrary R code interactively - added
showLog()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)
MAJOR CHANGES
onclickandoneventnow support callback functions, and the JavaScript Event object is passed to the callback (#92)- the
reset()function now works on file inputs
MINOR CHANGES
- added
alert()as an alias forinfo()
shinyjs 0.7
MAJOR CHANGES
- All the colourpicker/colourInput related functions are now deprecated because I've made a more appropriate package for them (
colourpicker) - Added
selectorargument tohtml()function - Add
reset()support forpasswordInputandtextAreaInput(#78)
MINOR CHANGES
- Use updated colourpicker JS library that fixes bugs with new jquery version
- Improved UI of demo shiny apps