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
Closed

dashboardSidebar has no collapsed=TRUE default #73

erebuslabs opened this issue Jul 27, 2015 · 6 comments
Assignees

Comments

@erebuslabs
Copy link

@erebuslabs 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

@MarkDB001 MarkDB001 commented Aug 4, 2015

+1 on the above request

Thanks,
Mark

@bdownie
Copy link

@bdownie bdownie commented Nov 20, 2015

+1

4 similar comments
@boxuancui
Copy link

@boxuancui boxuancui commented Oct 19, 2016

+1

@scholarsmate
Copy link

@scholarsmate scholarsmate commented Dec 2, 2016

+1

@joshuaisnow
Copy link

@joshuaisnow joshuaisnow commented Dec 23, 2016

+1

@berksarioz
Copy link

@berksarioz berksarioz commented Jan 26, 2017

+1

@wch wch added the targeted label Jan 26, 2017
bborgesr added a commit that referenced this issue Feb 20, 2017
…art off collapsed (fixes #73)
@bborgesr bborgesr self-assigned this Feb 20, 2017
@bborgesr bborgesr added in progress and removed targeted labels Feb 20, 2017
bborgesr added a commit that referenced this issue Feb 23, 2017
…art off collapsed (fixes #73)
bborgesr added a commit that referenced this issue Feb 23, 2017
…art off collapsed (fixes #73) (#186)
@bborgesr bborgesr removed the in progress label Feb 23, 2017
dmpe added a commit to dmpe/shinydashboard that referenced this issue Mar 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

9 participants
You can’t perform that action at this time.