Skip to contents

Create a validated set of top-level output and control ids for embedding the ggpaintr runtime inside a larger Shiny app.

Usage

ptr_build_ids(
  control_panel = "controlPanel",
  draw_button = "draw",
  plot_output = "outputPlot",
  error_output = "outputError",
  code_output = "outputCode"
)

Arguments

control_panel

Output id used for the generated control panel.

draw_button

Input id used for the draw button.

plot_output

Output id used for the plot output.

error_output

Output id used for the inline error UI.

code_output

Output id used for the generated code output.

Value

An object of class ptr_build_ids.

Examples

ids <- ptr_build_ids(
  control_panel = "custom_controls",
  draw_button = "run_plot"
)
ids$control_panel
#> [1] "custom_controls"