event {shinyfilter} | R Documentation |
Get JavaScript code for filters' selectizeInput onchange event
Description
Helper function to create the JavaScript event handler code for
the selectizeInput
filters of a shiny app using shinyfilters
.
Usage
event(name)
Arguments
name |
Name of the event/input variable set by the |
Details
Processing the onChange
event of the selectizeInput
widgets that serve as the filters is necessary so that filters all the
other shinyfilter
filters bound to the same reactable
can be
updated accordingly and show the currently available filter options. All
selectizeInput
should have exactly the same event handler.
You can of course create the JavaScript code for the onChange
event
handler function yourself, especially if you want to trigger additional
operations in JavaScript whenever an onChange
event occurs.
event()
function is just intended as a shortcut to save time and
effort.
For a full example of a shiny app using shinyfilter
please call up
the help for update_filters()
. See the README.md
file
or the GitHub repo on
https://github.com/jsugarelli/shinyfilter
for a comprehensive shinyfilter
tutorial.
Value
JavaScript code for the onChange
event.
Examples
event("myEvent")