简体   繁体   中英

Hide totally the sidebar when pressing the toggle button in shiny dashboard

Is there any way to hide totally the sidebar when pressing the toggle button at the top of the dashboard? Right now aa part of the sidebar remains.

#app.r
library(shiny)
library(shinyWidgets)
library(shinydashboard)
library(shinydashboardPlus)

shinyApp(
  ui = dashboardPagePlus(
    header = dashboardHeaderPlus(

    ),
    sidebar = dashboardSidebar(),
    body = dashboardBody(
    ),
    rightsidebar = rightSidebar(),
    title = "DashboardPage"
  ),
  server = function(input, output) { }
)

You can add sidebar_fullCollapse=TRUE in to the dashboardPagePlus command to fully collapse it

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM