Reputation: 155
In R shiny, if you had a really long single page, is there anyway to keep the navigation bar (fromnavbarPage
) at the top of the screen even while you're scrolling down?
Thanks for any help
Upvotes: 4
Views: 1972
Reputation: 156
Yes, this is possible. You should follow the navbarPage reference regarding this:
Bottomline: you have to argue the position argument of navbarPage():
navbarPage(title, ..., position = "fixed-top")
"fixed-top" will pin the navbar to the top.
Upvotes: 2