Navigate to particular sidebar menu item in ShinyDashboard?

533 views
Skip to first unread message

Iain Wallace

unread,
Oct 5, 2015, 10:55:16 AM10/5/15
to Shiny - Web Framework for R
Hi all,

How can one navigate to a particular sidebar menu item in ShinyDashboard?

sidebarMenu(
        menuItem("Menu Item 1")
menuItem("Menu Item 2")
 )

i.e. how can I put a button on the "Menu Item 1" page that will link to "Menu Item 2"?

To navigate between tabs I am using the updateTabsetPanel function:

observeEvent(input$go,{
updateTabsetPanel(session, "tabset1", selected = "Step 2")
})

I believe I should be able to use a similar function to navigate to a sidebar menu, but I am not sure what that is.

Any pointers greatly appreciated

Thanks

Iain

Iain Wallace

unread,
Oct 6, 2015, 10:34:46 AM10/6/15
to Shiny - Web Framework for R
Reply all
Reply to author
Forward
0 new messages