-
Notifications
You must be signed in to change notification settings - Fork 298
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
Should have way to start menuItems with subitems expanded #38
Comments
I want to add should have way to start box with box collapsed. Is this possible in the current code? |
It looks like this might require replacing the |
Good news! Thanks! |
It would also be useful to show and highlight the newly active menuItem or menuSubItem when using |
The menuItem expanded/collapsed state should also be bookmarkable. |
Note for future stumblers on this issue: Once #199 is merged, the way to start with a "childfull" shinyApp(
ui = dashboardPage(
dashboardHeader(),
dashboardSidebar(
sidebarMenu(
# Setting id makes input$tabs give the tabName of currently-selected tab
id = "tabs",
menuItem("Dashboard", tabName = "dashboard", icon = icon("dashboard")),
menuItem("Widgets", icon = icon("th"), tabName = "widgets", badgeLabel = "new"),
menuItem("Charts", icon = icon("bar-chart-o"), startExpanded = TRUE,
menuSubItem("Sub-item 1", tabName = "subitem1", selected = TRUE),
menuSubItem("Sub-item 2", tabName = "subitem2")
)
)
),
dashboardBody(),
title = "Dashboard example"
),
server = function(input, output) { }
) |
Closed in #199 |
No description provided.
The text was updated successfully, but these errors were encountered: