library(shiny)
mychoices = list()for(i in 1:5) mychoices[[i]]=inames(mychoices)=1:5
shinyApp( ui = fluidPage( actionButton('reset',"Reset X & Y"), radioButtons("radiox", label = h3("X"), choices = mychoices, selected = 0), radioButtons("radioy", label = h3("Y"), choices = mychoices, selected = 0) ), server =function(input, output, session) { observeEvent(input$reset,{ updateRadioButtons(session,"radiox", label = h3("X"),choices = mychoices,selected = 0) updateRadioButtons(session,"radioy", label = h3("Y"),choices = mychoices,selected = 0) }) })
--
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/224d2873-44a7-45af-bd4e-2d347b9e3bb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.