Register a buttonHandler for a shinyPart
| 1 2 3 | partButtonHandler(id, pa, fun, ..., app = getApp(),
  if.handler.exists = c("replace", "add", "skip")[1],
  session = getAppSession(app), substitute.fun = TRUE)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.