View source: R/func_extend-shinysurveys.R
| surveyID | R Documentation |
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.
surveyID()
NA; used for side effects with extendInputType.
extendInputType
surveyLabel
surveyOptions
extendInputType("slider", {
shiny::sliderInput(
inputId = surveyID(),
label = surveyLabel(),
min = 1,
max = 10,
value = 5
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.