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
Is it possible to add an argument to navbarPage that controls the default tabPanel selected?
Similar to that of selectInput(), navbarPage(title, ..., id = NULL, selected = NULL)
Currently I'm using the code below to change the default tab, as I want the middle tabPanel selected when the app loads; session$onFlush(function() {updateNavbarPage(session, "nav_tab_ids", selected = "middle_tab")})
However this is a little messy as you get a glimpse of the first tabPanel every time shiny flushes the reactive system.
I should just rearrange the tabs so that the middle tabPanel is the first tabPanel instead, but that would be too easy, and the app would lose some aesthetic appeal.
I may not be doing this in the most efficient way, if anyone has suggestions to different workarounds or advice it would be greatly appreciated, thanks!
p.s. Thanks so much for the awesome work with Shiny, it is an incredible product!!
The text was updated successfully, but these errors were encountered:
Hi there,
Is it possible to add an argument to navbarPage that controls the default tabPanel selected?
Similar to that of selectInput(),
navbarPage(title, ..., id = NULL, selected = NULL)
Currently I'm using the code below to change the default tab, as I want the middle tabPanel selected when the app loads;
session$onFlush(function() {updateNavbarPage(session, "nav_tab_ids", selected = "middle_tab")})
However this is a little messy as you get a glimpse of the first tabPanel every time shiny flushes the reactive system.
I should just rearrange the tabs so that the middle tabPanel is the first tabPanel instead, but that would be too easy, and the app would lose some aesthetic appeal.
I may not be doing this in the most efficient way, if anyone has suggestions to different workarounds or advice it would be greatly appreciated, thanks!
p.s. Thanks so much for the awesome work with Shiny, it is an incredible product!!
The text was updated successfully, but these errors were encountered: