Hiding a coral tab
I'm trying to hide a tab using javascript.
I've tried
.hide();
addClass("hidden");
addClass("hide");
all just hide the tab content but not the tab itself.

I can achieve hiding the tab by adding "sling:hideResource" in tab 2 properties. How can I do this using javascript?
Thanks!