library(shiny)
library(shinyjs)
ui <- fluidPage(
useShinyjs(),
disabled(actionButton("disabled", "this is disabled")),
actionButton("toggle", "toggle"),
div(id = "mydiv", "hello")
)
server <- function(input, output, session) {
observeEvent(input$toggle, {
toggle("mydiv")
})
}
shinyApp(ui, server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.