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("slider", {
shiny::sliderInput(
inputId = surveyID(),
label = surveyLabel(),
min = 1,
max = 10,
value = 5
)
})
#> Input Type "slider" registered with {shinysurveys}. If the session restarts, you will need to re-register it.
#> To see all registered input extensions, please call `shinysurveys::listInputExtensions()`.