View source: R/perspective-shiny.R
| psp_on_update | R Documentation |
Enables or disables a subscription to table data changes. When enabled,
every table.update() triggers input$<outputId>_update
with a list containing timestamp, port_id, and
source ("edit" for user edits, "api" for
programmatic updates).
psp_on_update(proxy, enable = TRUE)
proxy |
A |
enable |
Logical; |
The proxy object (invisibly), for chaining.
if (interactive()) {
proxy <- perspectiveProxy(session, "viewer")
psp_on_update(proxy)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.