英文:
Totally delete the toggle button that hides and display sidebar in shiny dashboard
问题
如何完全删除在shiny dashboard中隐藏和显示侧边栏的切换按钮?
## app.R ##
library(shiny)
library(shinydashboard)
ui <- dashboardPage(
dashboardHeader(),
dashboardSidebar(
collapsed = TRUE
),
dashboardBody(
)
)
server <- function(input, output) { }
shinyApp(ui, server)
英文:
How can I totally delete the toggle button that hides and display sidebar in shiny dashboard?
## app.R ##
library(shiny)
library(shinydashboard)
ui <- dashboardPage(
dashboardHeader(),
dashboardSidebar(
collapsed = T
),
dashboardBody(
)
)
server <- function(input, output) { }
shinyApp(ui, server)
答案1
得分: 1
library(shiny)
library(shinydashboard)
css <- ".sidebar-toggle {display: none;}"
ui <- dashboardPage(
dashboardHeader(),
dashboardSidebar(
collapsed = T
),
dashboardBody(
tags$head(tags$style(HTML(css)))
)
)
server <- function(input, output) { }
shinyApp(ui, server)
英文:
library(shiny)
library(shinydashboard)
css <- ".sidebar-toggle {display: none;}"
ui <- dashboardPage(
dashboardHeader(),
dashboardSidebar(
collapsed = T
),
dashboardBody(
tags$head(tags$style(HTML(css)))
)
)
server <- function(input, output) { }
shinyApp(ui, server)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论