【问题标题】:Hide totally the sidebar when pressing the toggle button in shiny dashboard按下闪亮仪表板中的切换按钮时完全隐藏侧边栏
【发布时间】:2020-02-21 22:12:47
【问题描述】:

按下仪表板顶部的切换按钮时,有什么方法可以完全隐藏侧边栏?现在侧边栏的一部分仍然存在。

#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) { }
)

【问题讨论】:

    标签: r shinydashboard


    【解决方案1】:

    您可以在dashboardPagePlus 命令中添加sidebar_fullCollapse=TRUE 以完全折叠它

    【讨论】:

      猜你喜欢
      • 2019-07-02
      • 2021-03-02
      • 1970-01-01
      • 2020-10-21
      • 2020-12-15
      • 1970-01-01
      • 1970-01-01
      • 2018-12-24
      • 1970-01-01
      相关资源
      最近更新 更多