Learn R Programming

shinysurveys (version 0.2.0)

surveyID: Add correct ID for custom input types

Description

surveyID() is a helper function for extendInputType. When defining custom input types, the inputId argument for shiny UI components should equal surveyID(). See examples for more details.

Usage

surveyID()

Arguments

Value

NA; used for side effects with extendInputType.

See Also

extendInputType

surveyLabel

surveyOptions

Examples

Run this code
# NOT RUN {
extendInputType("slider", {
shiny::sliderInput(
  inputId = surveyID(),
  label = surveyLabel(),
  min = 1,
  max = 10,
  value = 5
)
})

# }

Run the code above in your browser using DataLab