View source: R/func_extend-shinysurveys.R
| surveyOptions | R Documentation |
surveyOptions() is a helper function for extendInputType. When
defining custom input types, the choices arguments for shiny UI components
should equal surveyOption(). See examples for more details.
surveyOptions()
NA; used for side effects with extendInputType.
extendInputType
surveyID
surveyOptions
extendInputType("inlineRadioButtons", {
shiny::radioButtons(
inputId = surveyID(),
label = surveyLabel(),
selected = character(0),
choices = surveyOptions(),
inline = TRUE
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.