0

In my shiny server function I have a variable that is set either TRUE or FALSE. I would like to use this variable to set the dashboardHeader parameter disable to TRUE or FALSE. However, I have noticed that in order to preserve the dahsboardPage layout I need to generate this in the UI.

My question is whether anybody knows about a hack to set the variable disable in Shiny's dashboardSidebar and dashboardHeader function based on a server-side variable?

Jochem
  • 3,295
  • 4
  • 30
  • 55
  • does this help: https://stackoverflow.com/questions/56820844/how-can-i-change-r-shiny-checkboxinput-value-to-false-true-programmatically ? – captcoma Apr 12 '20 at 14:45
  • 1
    I think this is what you're looking for: https://stackoverflow.com/questions/39446493/shiny-how-to-disable-the-dashboardheader – bretauv Apr 12 '20 at 14:56

1 Answers1

0

In the comments to the question, @Bretauv suggested the answer tot he following question: shiny - how to disable the dashboardHeader

This was helpful and I ended up resolving the issue with shinyjs as described in that answer.

Jochem
  • 3,295
  • 4
  • 30
  • 55