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 lauch any JS function created inside a Shiny JavaScript handler.
activate_js()invoke_js(fun, ui_ref, session = shiny::getDefaultReactiveDomain())
JS function to be invoked.
The UI reference to call the JS function on.
The shiny session within which to call sendCustomMessage
.
Show an element with the jQuery selector provided.
Hide an element with the jQuery selector provided.
Show an element with the id provided.
Hide an element with the id provided.
Same as showid, but with class.
Same as hideid, but with class.
Same as showid, but with a[href*=
Same as hideid, but with a[href*=
Click on an element. The full jQuery selector has to be used.
Add "disabled" to an element. The full jQuery selector has to be used.
Remove "disabled" from an element. The full jQuery selector has to be used.