Skip to content

[Bug]: Id of sidebarMenu cannot be defined #184

@osenan

Description

@osenan

Guidelines

  • I agree to follow this project's Contributing Guidelines.

Project Version

0.2.1

Platform and OS Version

Ubuntu 18.04

Existing Issues

No response

What happened?

sidebarMenu does not work if id is defined

Steps to reproduce

Run the app in the code snippet, content of sidebar menu will not appear.

Expected behavior

id parameter should be allowed to set on sidebarMenu right now uisidebar is harcoded

Attachments

The following app has the sidebar menu broken

library(shiny)
library(semantic.dashboard)

ui <- dashboardPage(
  header = dashboardHeader(title = "Example updateTabItems"),
  sidebar = dashboardSidebar(
    sidebarMenu(id = "tabs",
      menuItem("Tab 1", tabName = "tab1"),
      menuItem("Tab 2", tabName = "tab2")
    )
  ),
  body = dashboardBody(
    tabItems(
      tabItem(tabName = "tab1",
              h2("Tab 1")
      ),
      tabItem(tabName = "tab2",
              h2("Tab 2")
      )
    )
  )
)

server <- function(input, output, session) {}

shinyApp(ui, server)

Screenshots or Videos

No response

Additional Information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions