Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dashboardSidebar has no collapsed=TRUE default #73

Closed
erebuslabs opened this issue Jul 27, 2015 · 6 comments · Fixed by #186
Closed

dashboardSidebar has no collapsed=TRUE default #73

erebuslabs opened this issue Jul 27, 2015 · 6 comments · Fixed by #186
Assignees

Comments

@erebuslabs
Copy link

erebuslabs commented Jul 27, 2015

Unlike other elements within the shinydashboard environment there is no way to force the dashboard sidebar to start in a collapsed state. Addition of a collapsed variable could be helpful.

dashboardSidebar(
   conditionalPanel("input.Email.toLowerCase().indexOf('foobar.com')>-1",
      sidebarMenu(
          menuItem("WorkFlows", icon=icon("random"),
             menuSubItem("Basic", tabName = "rawdata", icon=icon("dashboard"),selected = TRUE),
             menuSubItem("Advanced Analytics", tabName = "advanced",icon=icon("line-chart"))
          ),
          menuItem("Profile", tabName = "profile", icon=icon("sliders"))
      )
   )
)

to

dashboardSidebar(collapsed=TRUE,
   conditionalPanel("input.Email.toLowerCase().indexOf('foobar.com')>-1",
      sidebarMenu(
          menuItem("WorkFlows", icon=icon("random"),
             menuSubItem("Basic", tabName = "rawdata", icon=icon("dashboard"),selected = TRUE),
             menuSubItem("Advanced Analytics", tabName = "advanced",icon=icon("line-chart"))
          ),
          menuItem("Profile", tabName = "profile", icon=icon("sliders"))
      )
   )
)

The default would be:

collapsed=FALSE
@MarkDB001
Copy link

+1 on the above request

Thanks,
Mark

@bdownie
Copy link

bdownie commented Nov 20, 2015

+1

4 similar comments
@boxuancui
Copy link

+1

@scholarsmate
Copy link

+1

@joshuaisnow
Copy link

+1

@berksarioz
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants