Skip to contents

Display the value of a survey question

Usage

sd_display_value(id, display_type = "inline", wrapper = NULL, ...)

Arguments

id

The ID of the question to display

display_type

The type of display. Can be "inline" (default), "text", "verbatim", or "ui".

wrapper

A function to wrap the output

...

Additional arguments passed to the wrapper function

Value

A Shiny UI element displaying the question's value

Examples

if (FALSE) { # \dontrun{
# Deprecated:
sd_display_value("name")
sd_display_value("age", display_type = "text")
sd_display_value("email", display_type = "inline", wrapper = function(x) tags$strong(x))

# Use instead:
sd_output("name", type = "value")
sd_output("age", type = "value", display = "text")
sd_output("email", type = "value", display = "inline", wrapper = function(x) tags$strong(x))
} # }