0
votes

Below is a screenshot of my shiny dashboard. I'd like the sidebar (where there is a search function) to be fixed such that when a user loads it, It doesn't collapse.

enter image description here

1
Can you provide code to reproduce this? - Ronak Shah

1 Answers

0
votes

You can add collapsed = FALSE to dashboardSidebar

ui <- dashboardPage(
        

        # Dashboard Title
        title = "DashboardPage",
        
        # Dashboard Header;
        header = dashboardHeader(
                
        ),
        
        # Dashboard Sidebar; 
        sidebar = dashboardSidebar(
                collapsed = FALSE
                ),
        
        # Dashboard Body;
        body = dashboardBody(
                
        )
)