electron-tabs icon indicating copy to clipboard operation
electron-tabs copied to clipboard

Add a way to destroy tabGroup

Open ooobsidian opened this issue 4 years ago • 2 comments

When developing an electron application, how do I destroy the newly created tabGroup object, that is, how do I make the tab bar disappear?

ooobsidian avatar Sep 27 '21 09:09 ooobsidian

Currently there is no method to do this so you will have to to it manually by destroying the .etabs-tabgroup element and emptying the tabGroup variable.

var el = document.querySelector(.etabs-tabgroup);
if (el.parentNode !== null) {
  el.parentNode.removeChild(el);
}
tabGroup = null;

I will keep this issue open because it would be useful to add a proper way to do this. Maybe by moving the whole lib to web components.

brrd avatar Oct 01 '21 07:10 brrd

Thanks!

ooobsidian avatar Oct 11 '21 05:10 ooobsidian