Bundle Contexts for Panels and Tabs

Can you use a Bundle Context to have a tab only show when a certain type of document is active?
For instance, show a set of tools only when “context: doc-family”?
I figured out how to make it disable a button, but I had to put the bundle.yaml under the .pushbutton.
Is there a way to just make the panel disappear if the document is not a family doc?
Is there another way to do this other than the Bundle contexts?

2 Likes