view_ui: Show UI output in viewer pane

Description Usage Arguments Examples

View source: R/view_ui.R

Description

Show UI output in viewer pane

Usage

1
view_ui(x, close_after = 5)

Arguments

x

ui content (actionButton, selectInput, valueBox), defaults to last output, expects an object with class "shiny.tag"

close_after

number of seconds to display UI in Viewer panel. If NULL, app must be stopped manually before more code can be run.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
# run this line
shiny::selectInput(
  "state",
  "Choose a state:",
  list(
    `East Coast` = list("NY", "NJ", "CT"),
    `West Coast` = list("WA", "OR", "CA"),
    `Midwest` = list("MN", "WI", "IA")
  )
)
# the output will automatically be used here
view_ui(close_after = 6)

## End(Not run)

rjake/shinysim documentation built on Nov. 11, 2019, 2:29 a.m.