bs4dash

How can I reactively update the active menuItem in a Shiny app using `renderUI`?

此生再无相见时 提交于 2021-02-11 15:19:09
问题 I am building a shiny app that dynamically creates reactive bs4Box elements from a data frame. I want to make those boxes clickable by the user so that automatic redirection to a different menuItem occurs. I have read and followed similar previous SO questions like this one or this issue without success. A JavaScript solution like this one could also work? Here's my attempt so far using the updatebs4ControlbarMenu function: library(shiny) #> Warning: package 'shiny' was built under R version

Reactively updating sidebar in modular Shiny app

左心房为你撑大大i 提交于 2021-01-01 18:01:04
问题 I have a modularized Golem app using bs4Dash. I want to update the active sidebar tab from an actionBttn that is dynamically generated from renderUI . While updatebs4ControlbarMenu works as expected as shown here, it does not work in the modularized version of the application. What am I doing wrong? I suspect it is related to input[[btnID]] management across modules but I struggle to find the solution. Working example without modules as shown here: library(shiny) library(shinyWidgets) library

Reactively updating sidebar in modular Shiny app

ぃ、小莉子 提交于 2021-01-01 17:52:05
问题 I have a modularized Golem app using bs4Dash. I want to update the active sidebar tab from an actionBttn that is dynamically generated from renderUI . While updatebs4ControlbarMenu works as expected as shown here, it does not work in the modularized version of the application. What am I doing wrong? I suspect it is related to input[[btnID]] management across modules but I struggle to find the solution. Working example without modules as shown here: library(shiny) library(shinyWidgets) library

Reactively updating sidebar in modular Shiny app

瘦欲@ 提交于 2021-01-01 17:51:15
问题 I have a modularized Golem app using bs4Dash. I want to update the active sidebar tab from an actionBttn that is dynamically generated from renderUI . While updatebs4ControlbarMenu works as expected as shown here, it does not work in the modularized version of the application. What am I doing wrong? I suspect it is related to input[[btnID]] management across modules but I struggle to find the solution. Working example without modules as shown here: library(shiny) library(shinyWidgets) library