1
votes

I have a shiny dashboard which has a leaflet map in the main panel and some data on absolutePanel (id="controls"). I have some selectInputs. Based on one of the values of the dropdown/selectinput, I want to hide the absolutePanel.

SelectInput details: Id: selectme choices: c("--","a","b","c")

I want something like, if(input$selectme=="--", hide(absolutePanel(id-"controls"))

How do I do this?

1

1 Answers

1
votes

What you are looking for is called conditionalPanel. From ?conditionalPanel:

Usage

conditionalPanel(condition, ...)

Arguments

condition A JavaScript expression that will be evaluated repeatedly to determine whether the panel should be displayed.

... Elements to include in the panel.