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

Add collapsed argument to dashboardSidebar() #186

Merged
merged 1 commit into from
Feb 23, 2017
Merged

Conversation

bborgesr
Copy link
Contributor

@bborgesr bborgesr commented Feb 20, 2017

This allows the sidebar to start off collapsed (fixes #73).

Should the argument name be "collapsed" or "startCollapsed" (or something else)?

Example app:

library(shinydashboard)
library(shiny)

shinyApp(
  ui = dashboardPage(
    dashboardHeader(),
    dashboardSidebar(collapsed = TRUE),
    dashboardBody()
  ),
  server = function(input, output, session) {}
)

@bborgesr bborgesr merged commit 3f2399f into master Feb 23, 2017
@bborgesr bborgesr deleted the barbara/sidebar branch February 23, 2017 00:59
dmpe pushed a commit to dmpe/shinydashboard that referenced this pull request Mar 25, 2017
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 this pull request may close these issues.

dashboardSidebar has no collapsed=TRUE default
1 participant