Created
August 11, 2019 07:57
-
-
Save bfatemi/014b9c3926817c93188d3559243f3ef5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
user_selected <- reactiveValues(a = 1, b = 1, c = 1) | |
observeEvent(input$slider, { | |
user_selected$a <- input$slider | |
}) | |
observeEvent(input$dropdown, { | |
input$slider <- input$dropdown | |
user_selected$b <- input$dropdown | |
}) | |
eventReactive(input$btn_submit, { | |
reactiveValuesToList(user_selected) | |
}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment