Create a group of checkboxes that can be used to toggle multiple choices independently. The server will receive the input as a character vector of the selected values.
- only one particular element selected : condition = 'input.testBox =="A"'- testing if the selected elements belong to a specified list of elements : see https://groups.google.com/d/topic/shiny-discuss/9sMPLfX_LxA/discussion- for other conditions, I don't know the Javascript syntax
shinyUI(
navbarPage(title='Menu',
tabPanel('Overview',
fluidPage(
sidebarPanel(
checkboxGroupInput(inputId='sidebarOptions',
label=h3('Show:'),
choices=c('Legend Options', 'Clustering Options', 'Filtering Options'),
selected='Clustering Options'),
conditionalPanel(condition="input.sidebarOptions.indexOf('Legend Options') > -1)",
stuff
)
)
)
)
)
)
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/6d27c3b2-0da6-4d74-aa90-ab7b3317e405%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.