Skip to content

sidebar id is not in input inside a RMarkdown #407

@victordebuen

Description

@victordebuen

Hello

I am trying to create a dashboard that will allow me to know which menu is selected as shown here
https://rstudio.github.io/shinydashboard/behavior.html

If I make it as an app it works perfectly but if I embed a RMardown it doesn't work and input$tabs is NULL.

test_shinydashboard_sidebar_id_inside_RMarkdown.Rmd.txt

Sorry, I didn't know how to write the example code because it's RMarkdown and it didn't let me upload a file with extension .Rmd, so I added .txt at the end.

RMarkdown makes it quite easy for me to publish applications by simply copying the file to the shiny server directory. That's why I wanted to point out this small problem, although it's clearly not very serious because you can refactor the code as a shiny app. I also wanted to notify you in case this fact is hiding another more serious latent problem.

Thank you very much for your attention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions