dev/test_dev/test-selectInput-Event.R

library(shiny)

ui <- fluidPage(
  selectInput('select', 'Select', 
              choices=1:20,
              multiple = TRUE
              )
)



server <- function(input, output, session) {
  
 observeEvent(input$select, ignoreNULL = FALSE, {
   
   print(input$select)
 })
  
}


shinyApp(ui, server)
samWieczorek/Prostar2 documentation built on Jan. 18, 2021, 11:42 p.m.