I'm currently working with the library bs4Dash, in my ui I have something like this:
tabItem( tabName = "one", ), tabItem( tabName = "two", ))
In the sidebar, i want to add a conditionalPanel that has the next condition: if i'm seeing the tab "one", show h2("Hello")
conditionalPanel( condition = 'tabItem == "one"', h2("Hello"))
Is there any way i can reference the tabItem in this conditionalPanel? The main idea is to have different texts in the sidebar when clicking different tabs. If not, is there any other way to do something like this?
I tried with 'input.all_panels, since that's how it works with other shiny R apps.
You need to give the
sidebarMenuandidargument which allows you to use this as aninputthat can be used in aconditionalPanel: