Description Usage Arguments Details
These functions are for registering callbacks on Shiny session events.
onFlush
registers a function that will be called before Shiny flushes
the reactive system. onFlushed
registers a function that will be
called after Shiny flushes the reactive system. onSessionEnded
registers a function to be called after the client has disconnected.
1 2 3 4 5 | onFlush(fun, once = TRUE, session = getDefaultReactiveDomain())
onFlushed(fun, once = TRUE, session = getDefaultReactiveDomain())
onSessionEnded(fun, session = getDefaultReactiveDomain())
|
fun |
A callback function. |
once |
Should the function be run once, and then cleared, or should it
re-run each time the event occurs. (Only for |
session |
A shiny session object. |
These functions should be called within the application's server function.
All of these functions return a function which can be called with no arguments to cancel the registration.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.