buttonHTML <- function(i){
as.character(
actionButton(
paste0("button_", i), label = "Report",
onclick = sprintf("Shiny.setInputValue('button', %d);", i)
)
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.