example <- paste0( rprojroot::find_package_root_file(), "/inst/examples/shiny.R" ) do.call(knitr::read_chunk, list(path = example))
If you click on an object, the onclick
event sends the resulting picking info object to your Shiny application and updates the corresponding input in the form of input$widgetId_onclick
. For the example above the widgetId
is deck
, so that you access the info object via input$deck_onclick
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.