surveyOptions {shinysurveys} | R Documentation |
Add options for custom input types
Description
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.
Usage
surveyOptions()
Value
NA; used for side effects with extendInputType
.
See Also
Examples
extendInputType("inlineRadioButtons", {
shiny::radioButtons(
inputId = surveyID(),
label = surveyLabel(),
selected = character(0),
choices = surveyOptions(),
inline = TRUE
)
})
[Package shinysurveys version 0.2.0 Index]