Closed bborgesr closed 7 years ago
Attach input$sidebarCollapsed value to the end of the sidebar transitions (instead of when the toggle button is clicked).
Repro:
library(shiny) library(shinydashboard) ui <- dashboardPage( dashboardHeader(), dashboardSidebar(), dashboardBody( textOutput("res") ) ) server <- function(input, output, session) { output$res <- renderText({ if (input$sidebarCollapsed) { "Sidebar is collapsed" } else { "Sidebar is expanded" } }) } shinyApp(ui, server)
@wch This is rebased, updated and tested as much as I could think of... I think we're good to merge.
Attach input$sidebarCollapsed value to the end of the sidebar transitions (instead of when the toggle button is clicked).
Repro: