This is my {shinydashboard}:
library(shiny)
library(shinydashboard)
ui <- dashboardPage(
  dashboardHeader(),
  dashboardSidebar(
    "User Name",
    subtitle = a(href = "#", icon("circle", class = "text-success"), "Online"),
    sidebarMenu(
      id = "tabs",
      menuItem(
        "Dashboard",
        tabName = "dashboard",
        icon = icon("dashboard"),
        menuSubItem(
          "Widgets",
          icon = icon("th"),
          tabName = "widgets"
        ),
        menuSubItem(
          "Charts",
          icon = icon("th"),
          tabName = "charts"
        )
      ))),
  dashboardBody(
    tabItems(
      tabItem("dashboard",
              tags$button(
                h1('This button takes me to the Widgets Panel')),
              br(),
              br(),
              tags$button(h1('This button takes me to the Charts Panel'))
              ))))
server = function(input, output) {
}
shinyApp(ui, server)
The idea is to click on 'Dashboard' Menu and then on the body I have a link or button that takes me to the 'Widgets' or 'Charts' Panels.
Once I click on those buttons/links OR click on the Sub Menus of 'Dashboard' menu these actions will take me to their Panels.
So, how can I add the buttons and links that take me to the panels of my Menu SubItems?
And how can I add the buttons and links on the body of my Shiny Dashboard?
Any help would me amazing.