Disabling tabPanels

shiny

#1

Does anyone have a great way to disable tabPanels? I was trying to use shinyjs::disable but there is not a way to clearly identify the tabPanels as there is no id associated with them.


#2

The shinyjs FAQ section has this question https://deanattali.com/shinyjs/help


#3

That disables the anchor tag within the li element. The link is still clickable, albeit inactive so nothing happens. I am looking for a way to disable the li element for a specific tab.


#4

I haven’t looked into the specifics so I don’t know what class/attribute exactly you’re hoping to modify. But that code uses javascript to reach the tab and add/remove a class from it. So using that as a starting point you should be able to add one more line to modify the attributes of the parent element as well