Skip to contents

Echoes a scene id from glass_scenes() through update_glass_theme() after the client has already painted it.

Usage

observe_glass_scene(input, session, inputId = "glass_scene")

Arguments

input, session

Shiny server input and session objects.

inputId

Character. Same id passed to glass_scene_input(). Default "glass_scene".

Value

An shiny::observeEvent() observer (invisibly).

Examples

if (interactive()) {
  library(shiny)
  ui <- fluidPage(
    theme = glass_theme(),
    glass_scene_input()
  )
  server <- function(input, output, session) {
    observe_glass_scene(input, session)
  }
  shinyApp(ui, server)
}