-
Notifications
You must be signed in to change notification settings - Fork 76
Closed
Description
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)
micahwilhelm
Metadata
Metadata
Assignees
Labels
No labels