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

Change left sidebar behavior to normal shinydashboard #24

Closed
serkserk opened this issue Jan 3, 2019 · 1 comment
Closed

Change left sidebar behavior to normal shinydashboard #24

serkserk opened this issue Jan 3, 2019 · 1 comment

Comments

@serkserk
Copy link

serkserk commented Jan 3, 2019

Hi, first thanks for you library, there is lots of uselfull new widget !

One issue I have currently is that I want to use the default looking left sidebar, without the preview on hover or the main title collapsing or even allow to close it completly.
Those things doesn't seems possible right now.
Maybe I'm wrong.

@DivadNojnarg
Copy link
Member

Hi,

this is because of this custom CSS in the dashboardPagePlus. I pushed a new version on GitHub:

devtools::install_github("RinteRface/shinydashboardPlus")
library(shiny)
library(shinydashboard)
library(shinydashboardPlus)

shinyApp(
  ui = dashboardPagePlus(
    header = dashboardHeaderPlus(
     enable_rightsidebar = TRUE,
     rightSidebarIcon = "gears"
    ),
    sidebar = dashboardSidebar(),
    sidebar_fullCollapse = TRUE,
    body = dashboardBody(),
    rightsidebar = rightSidebar(),
    title = "DashboardPage"
  ),
  server = function(input, output) { }
)

Just pass sidebar_fullCollapse = TRUE to have the same behavior as in shinydashboard.

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

No branches or pull requests

2 participants