set_scene {scenes}R Documentation

Link a UI to Required Actions

Description

A scene is a shiny ui and the actions that trigger it.

Usage

set_scene(ui, ...)

Arguments

ui

A shiny ui.

...

One or more scene_action objects.

Value

A shiny_scene object, which is a list with components ui and actions.

Examples

scene1 <- set_scene(
  "A shiny ui",
  req_has_query("scene", 1)
)
scene1
scene2 <- set_scene(
  "Another shiny ui",
  req_has_query("scene", 2)
)
scene2

[Package scenes version 0.1.0 Index]