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

Comments

Projects
None yet
9 participants
@erebuslabs
Copy link

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

This comment has been minimized.

Copy link

commented Aug 4, 2015

+1 on the above request

Thanks,
Mark

@bdownie

This comment has been minimized.

Copy link

commented Nov 20, 2015

+1

4 similar comments
@boxuancui

This comment has been minimized.

Copy link

commented Oct 19, 2016

+1

@scholarsmate

This comment has been minimized.

Copy link

commented Dec 2, 2016

+1

@joshuaisnow

This comment has been minimized.

Copy link

commented Dec 23, 2016

+1

@berksarioz

This comment has been minimized.

Copy link

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

@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

bborgesr added a commit that referenced this issue Feb 23, 2017

@bborgesr bborgesr removed the in progress label Feb 23, 2017

dmpe added a commit to dmpe/shinydashboard that referenced this issue Mar 25, 2017

@kweiss2 kweiss2 referenced this issue Feb 5, 2018

Open

Collapse/expand #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.