reaker
reaker

Reputation: 155

r shiny navbarpage keep navigation bar at top of screen

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

Answers (1)

Nathan Brown
Nathan Brown

Reputation: 156

Yes, this is possible. You should follow the navbarPage reference regarding this:

Shiny reference: navbarPage

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

Related Questions