library(shinyjs)
values <- reactiveValues(num = NULL)
runApp(shinyApp( ui = fluidPage( useShinyjs(), hidden( div( id = "inputsWindow", numericInput("num", "Number", 10), tags$a("Open plot window", href = "?plot=true", target = "_blank") ), div( id = "plotWindow", plotOutput("plot") ) ) ), server = function(input, output, session) { observe({ query <- parseQueryString(session$clientData$url_search) if (is.null(query[['plot']])) { show("inputsWindow") } else { show("plotWindow") } }) observeEvent(input$num, { values$num <- input$num }) output$plot <- renderPlot({ plot(seq(values$num)) }) }))
--
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/440a7cde-0e83-4de8-8e40-bfd02e9e0d2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shiny-discuss/DNlnC3JGNBI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/3d70bdbd-e386-45a6-a86c-4a1a1a584547%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to shiny-discuss+unsubscribe@googlegroups.com.