I'm working on a golem
application and came across bslib
. The value box elements are highly desirable for an existing dashboard, but I don't see a straightforward way to feed reactive elements defined in server-side namespaces to these in the ui side of the module.
Very barebones example below, knowing that shiny::valueBox
/ shiny::renderValueBox
is not compatible with the bslib
one.
mod_display_ui <- function(id){
ns <- NS(id)
tagList(
bslib::value_box(title = "Title",
value = ns("value")
)
}
mod_display_server <- function(id){
moduleServer( id, function(input, output, session){
ns <- session$ns
output$value <- renderValueBox({
valueBox(
value = value
)
})
}
Is bslib
at all compatible with modules/golem
architecture?