Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updatebs4Controlbar not working on 0.6.0.9000 #110

Closed
dwhdai opened this issue May 16, 2020 · 0 comments
Closed

updatebs4Controlbar not working on 0.6.0.9000 #110

dwhdai opened this issue May 16, 2020 · 0 comments

Comments

@dwhdai
Copy link

dwhdai commented May 16, 2020

Minimal example:

if (interactive()) {
    library(shiny)
    library(bs4Dash)
    
    shinyApp(
        ui = dashboardPage(
            controlbar_collapsed = TRUE,
            controlbar_overlay = TRUE,
            navbar = dashboardHeader(),
            sidebar = dashboardSidebar(),
            body = dashboardBody(
                actionButton(inputId = "toggle", label = "Toggle Controlbar"),
            ),
            controlbar = dashboardControlbar(inputId = "controlbar")
        ),
        server = function(input, output, session) {
            
            observeEvent(input$toggle, {
                updatebs4Controlbar(inputId = "controlbar", session = session)
            })
            
            observe({
                message(input$toggle)
            })
        }
    )
}

This is working on 0.5.0. Tested on Windows 10, shiny 1.4.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant