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/Prostar.2.0 documentation built on Dec. 4, 2022, 11:53 a.m.