Closed arihanth-jain closed 5 years ago
You need:
library(shiny)
library(shinydashboard)
library(shinydashboardPlus)
shinyApp(
ui = dashboardPagePlus(
collapse_sidebar = TRUE,
dashboardHeaderPlus(
enable_rightsidebar = TRUE,
rightSidebarIcon = "gears"
),
dashboardSidebar(collapsed = TRUE),
dashboardBody(),
rightsidebar = rightSidebar()
),
server = function(input, output) {}
)
Especially the collapse_sidebar = TRUE argument in dashboardPagePlus()
. By the way, you are right that I should remove the collapse argument from dashboardSidebar (comes from shinydashboard). This is a useless overlapping 👍
Sorry for my late response and thanks for your input. It works !
Hi, setting dashboardSidebar with collapsed to TRUE is not working. The app still starts in default uncollapsed state.
Thanks.