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

menuitems in sidebar should be collapsible #172

Open
mattapel opened this issue Nov 12, 2021 · 0 comments
Open

menuitems in sidebar should be collapsible #172

mattapel opened this issue Nov 12, 2021 · 0 comments

Comments

@mattapel
Copy link

Great package! Unfortunately it is not yet possible to have collapsible menuItems in the sidebar as in shinydashboard

`library(shiny)
library(shinydashboard) # <-- Change this line to: library(semantic.dashboard)

ui <- dashboardPage(
dashboardHeader(title = "Basic dashboard"),
dashboardSidebar(sidebarMenu(
menuItem(tabName = "home", text = "Home", icon = icon("home"),
menuItem(tabName = "another", text = "Another Tab", icon = icon("heart"))) # <--- collapsible menuItem only in shinydashboard
)),
dashboardBody(
fluidRow(
box(plotOutput("plot1", height = 250)),
box(
title = "Controls",
sliderInput("slider", "Number of observations:", 1, 100, 50)
)
)
)
)

server <- function(input, output) {
set.seed(122)
histdata <- rnorm(500)
output$plot1 <- renderPlot({
data <- histdata[seq_len(input$slider)]
hist(data)
})
}

shinyApp(ui, server)`

@osenan osenan added this to Backlog in shiny.dashboard via automation Apr 25, 2022
@osenan osenan moved this from Backlog to Current sprint in shiny.dashboard Apr 25, 2022
@osenan osenan moved this from Current sprint to Backlog in shiny.dashboard Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
shiny.dashboard
  
Backlog
Development

No branches or pull requests

2 participants