inst/apps/ciudatos_v1/00.R

library(shiny)
library(shinyjs)


shinyApp(
  ui = fluidPage(
    useShinyjs(),  # Set up shinyjs
    actionButton("btn", "Click me"),
    p(id = "element", "Watch what happens to me")
  ),
  server = function(input, output) {
    observeEvent(input$btn, {
      # Change the following line for more examples
      html("element", paste0("The date is ", today()))
    })
  }
)
randommonkey/ciudatos documentation built on May 26, 2019, 11 p.m.