What you are asking is complicated, and it may be impossible, because in a shinydashboard, top-level controls are located inside the dashboard (left), and the content is contained inside the control panel (right). If you place navMenu inside the Body toolbar, it must belong to a specific sidebar item and disappear if you later click on another sidebar item.
You may need to change the way you want to achieve this. Depending on what you want to do, you may try:
, , tabItem. , renderMenu() server.R:
output$menu <- renderMenu({
sidebarMenu(id = "sidebMenu",
menuItem("Load Data", tabName = "loadData", icon = icon("database"),
actionButton("press", "Press me")
)
})
, , , , , , - . , .
dashboardSidebar(disable = TRUE) , . shinydashboard, , . , , shinydashboard, , , , .. , .
, .