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

Menu Item with Sub Menu Item Arrow Not Rotating #164

Open
omerkara opened this issue May 11, 2022 · 0 comments
Open

Menu Item with Sub Menu Item Arrow Not Rotating #164

omerkara opened this issue May 11, 2022 · 0 comments

Comments

@omerkara
Copy link

Hello,
In version 2.0.4.9000, the menu item arrow does not rotate when using shinydashboardPlus::dashboardPage() function.

Please see below for an example.

library(shiny)
library(shinydashboard)
library(shinydashboardPlus)

header <- shinydashboard::dashboardHeader()

sidebar <- shinydashboard::dashboardSidebar(
    sidebarMenu(
        id = "tabs",
        menuItem("Menu Item 1", icon = icon("calendar"),
                 sliderInput(
                     inputId = "slider1",
                     label = "Dummy Label",
                     min = 0, max = 10, step = 1, value = 5
                 )
        ),
        menuItem("Menu Item 2", icon = icon("calendar"),
                 sliderInput(
                     inputId = "slider2",
                     label = "Dummy Label",
                     min = 0, max = 10, step = 1, value = 5
                 )
        )
    )
)

body <- shinydashboard::dashboardBody()

shinyApp(
    ui = shinydashboard::dashboardPage(header, sidebar, body),
    server = function(input, output) { }
)

vs

library(shiny)
library(shinydashboard)
library(shinydashboardPlus)

header <- shinydashboard::dashboardHeader()

sidebar <- shinydashboard::dashboardSidebar(
    sidebarMenu(
        id = "tabs",
        menuItem("Menu Item 1", icon = icon("calendar"),
                 sliderInput(
                     inputId = "slider1",
                     label = "Dummy Label",
                     min = 0, max = 10, step = 1, value = 5
                 )
        ),
        menuItem("Menu Item 2", icon = icon("calendar"),
                 sliderInput(
                     inputId = "slider2",
                     label = "Dummy Label",
                     min = 0, max = 10, step = 1, value = 5
                 )
        )
    )
)

body <- shinydashboard::dashboardBody()

shinyApp(
    ui = shinydashboardPlus::dashboardPage(header, sidebar, body),
    server = function(input, output) { }
)

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant