Wires a preset select to update_glass_theme() so session state stays
aligned with the client (the client already applied the preset live).
Arguments
- input
The server
inputobject.- session
The server
sessionobject.- inputId
Same id passed to
glass_preset_input().
Value
An shiny::observeEvent() observer (invisibly).
See also
glass_preset_input(), update_glass_theme()
Other glass controls:
glass_accent_input(),
glass_intensity_slider(),
glass_plot_surface_input(),
glass_preset_input(),
glass_resolved_preset(),
glass_scene_input(),
glass_system_colors(),
glass_theme_toggle(),
observe_glass(),
observe_glass_accent(),
observe_glass_intensity(),
observe_glass_plot_surface(),
observe_glass_scene(),
observe_glass_theme_toggle()
Examples
if (interactive()) {
library(shiny)
ui <- fluidPage(
theme = glass_theme(),
glass_preset_input()
)
server <- function(input, output, session) {
observe_glass_preset_input(input, session)
}
shinyApp(ui, server)
}