Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

199
Views
How to completely collapse sidebar in bs4Dash

I need to fully (not partially) collapse the main sidebar (left) in my app with toggle button. I noticed there is an argument: sidebar_fullCollapse in shinydashboardPlus, that if set to TRUE will collapse the sidebar completely. However, we do not have this parameter in bs4DashPage. Any help would be highly appreciated.

library(shiny)
library(bs4Dash)

shinyApp(
  ui = bs4DashPage(
    header = dashboardHeader(),
    body = dashboardBody(),
    sidebar = dashboardSidebar()
  ),
  server = function(input, output, session) {}
)

enter image description here

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Here is a sample picture which shows that the sidebar is completely collapsed.

enter image description here

about 4 years ago · Juan Pablo Isaza Report

0

I just found the answer to this question. There is a parameter in bs4DashPage by the name of minified. Setting this parameter to FALSE will collapse the sidebar completely.

library(shiny)
library(bs4Dash)

shinyApp(
  ui = bs4DashPage(
    header = dashboardHeader(),
    body = dashboardBody(),
    sidebar = dashboardSidebar(
      minified = F
    )
  ),
  server = function(input, output, session) {}
)

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!