inst/examples/08-resize/server.R

library(shiny)
library(shinyAce)

shinyServer(function(input, output, session) {
  observeEvent(input$clear, {
    updateAceEditor(session, "ace", value = "\r")
  })
})

Try the shinyAce package in your browser

Any scripts or data that you put into this service are public.

shinyAce documentation built on May 6, 2022, 9:07 a.m.