event: Get JavaScript code for filters' selectizeInput onchange...

Description Usage Arguments Details Value Examples

View source: R/shinyfilter.r

Description

Helper function to create the JavaScript event handler code for the selectizeInput filters of a shiny app using shinyfilters.

Usage

1

Arguments

name

Name of the event/input variable set by the selectizeInput filters whenever the selection changes. Can be handled in a call of observeEvent().

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

1
event("myEvent")

shinyfilter documentation built on May 11, 2021, 1:07 a.m.