Skip to content

input$sidebarCollapsed does not work  #57

@ivokwee

Description

@ivokwee

Hi,

I think the input$sidebarCollapsed does not work for shinydashboardPlus. It works for dashboardPage but as soon as I use dashboardPagePlus it does not work.

The code below does not work properly.

Ivo

library(shiny)
library(shinydashboard)
library(shinydashboardPlus)

ui <- dashboardPagePlus(
    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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions