Skip to contents

Drop-in shiny::selectInput() that applies window.shinyglass.setScene() immediately. Pair with observe_glass_scene() so the server stays in sync.

Usage

glass_scene_input(
  inputId = "glass_scene",
  label = "Wallpaper scene",
  selected = "default",
  choices = glass_scenes(),
  width = NULL
)

Arguments

inputId

The input slot that will be used to access the value.

label

Display label (or NULL for none).

selected

Initially selected scene id.

choices

Named character vector. Defaults to glass_scenes().

width

The width of the input (e.g. "100%").

Value

A shiny::selectInput() tag marked for client bindings.