Skip to contents

Echoes "clear" or "opaque" through update_glass_theme() after the client has already applied the surface.

Usage

observe_glass_plot_surface(input, session, inputId = "plot_surface")

Arguments

input, session

Shiny server input and session objects.

inputId

Character. Same id passed to glass_plot_surface_input(). Default "plot_surface".

Value

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

Examples

if (interactive()) {
  library(shiny)
  ui <- glass_page(
    title = "Surface",
    controls = "toggle",
    glass_plot_surface_input()
  )
  server <- function(input, output, session) {
    observe_glass_plot_surface(input, session)
  }
  shinyApp(ui, server)
}