Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
osenan opened this issue May 4, 2022 · 0 comments
Open
1 task done

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

osenan opened this issue May 4, 2022 · 0 comments
Assignees
Labels

Comments

@osenan
Copy link
Contributor

osenan commented May 4, 2022

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

@osenan osenan added the bug label May 4, 2022
@osenan osenan self-assigned this May 4, 2022
@osenan osenan closed this as completed May 4, 2022
@osenan osenan reopened this May 4, 2022
@osenan osenan changed the title [Bug]: [Bug]: Id of sidebarMenu cannot be defined May 4, 2022
@osenan osenan mentioned this issue May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant