activate_js
is used in your UI to insert directly the JavaScript
functions contained in golem. These functions can be called from
the server with invoke_js
. invoke_js
can also be used
to launch any JS function created inside a Shiny JavaScript handler.
1 2 3 | activate_js()
invoke_js(fun, ..., session = shiny::getDefaultReactiveDomain())
|
fun |
JS function to be invoked. |
... |
JSON-like messages to be sent to the triggered JS function |
session |
The shiny session within which to call
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.