You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using page_navbar with a collection of nav_panels on mobile (I think breakpoint is 992px), the navbar switches to a toggler.
I would expect the toggler to automatically collapse when selecting a new nav_panel, however it does not.
Am I missing something or is it normal behaviour ? In the latter case, could you add a feature for this ?
Thanks for your help on this topic !
Code :
library(bslib)
ui <- page_navbar(
title = "My app",
nav_spacer(),
nav_panel("Page 1", h1("Page 1")),
nav_panel("Page 2", h1("Page 2")),
nav_spacer(),
collapsible = TRUE,
fluid = TRUE
)
server <- function(input, output, session) {
}
shinyApp(ui = ui, server = server)
The text was updated successfully, but these errors were encountered:
When using
page_navbar
with a collection ofnav_panel
s on mobile (I think breakpoint is 992px), the navbar switches to a toggler.I would expect the toggler to automatically collapse when selecting a new
nav_panel
, however it does not.Am I missing something or is it normal behaviour ? In the latter case, could you add a feature for this ?
Thanks for your help on this topic !
Code :
The text was updated successfully, but these errors were encountered: