Drop-in shiny::selectInput() that applies
window.shinyglass.setPlotSurface() immediately. Pair with
observe_glass_plot_surface() so the server stays in sync.
Usage
glass_plot_surface_input(
inputId = "plot_surface",
label = "Plot / table surface",
selected = c("clear", "opaque"),
width = NULL
)Value
A shiny::selectInput() tag marked for client bindings.
See also
observe_glass_plot_surface(), glass_theme()
Other glass controls:
glass_accent_input(),
glass_intensity_slider(),
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_preset_input(),
observe_glass_scene(),
observe_glass_theme_toggle()
Examples
glass_plot_surface_input(selected = "opaque")
#> <div class="form-group shiny-input-container">
#> <label class="control-label" id="plot_surface-label" for="plot_surface">Plot / table surface</label>
#> <div>
#> <select id="plot_surface" class="shiny-input-select glass-plot-surface-input" data-glass-plot-surface-input="plot_surface"><option value="clear">Clear (show wallpaper)</option>
#> <option value="opaque" selected>Opaque (readable)</option></select>
#> <script type="application/json" data-for="plot_surface" data-nonempty="">{"plugins":["selectize-plugin-a11y"]}</script>
#> </div>
#> </div>