Skip to content

Commit

Permalink
update input when tab changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmelliott committed Jan 6, 2025
1 parent 3b83cca commit fffc090
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions panels/C1_Visualize/2_visualize-panel-server.R
Original file line number Diff line number Diff line change
Expand Up @@ -7469,5 +7469,14 @@ observeEvent(input$global.round.pct, {
graphical.par$round_percent <- input$global.round.pct
})

observeEvent(input$plot_selector, {
if (!is.null(input$plot_selector) && input$plot_selector == "Summary") {
updateNumericInput(session,
"global.sig.level",
value = graphical.par$signif
)
}
})


source("panels/C1_Visualize/vit.R", local = T)
8 changes: 8 additions & 0 deletions panels/C1_Visualize/infoWindow.R
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,14 @@ output$visualize.summary <- renderPrint({
}
})

gloablSigLevel <- reactive(input$global.sig.level.inf)
observeEvent(input$global.sig.level.inf, {
graphical.par$signif <- input$global.sig.level.inf
# updateNumericInput(session,
# inputId = "global.sig.level",
# value = graphical.par$signif
# )
})

# observeEvent(input$global.sig.level.inf, {
# graphical.par$signif <- input$global.sig.level.inf
Expand Down

0 comments on commit fffc090

Please sign in to comment.