Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Add a way to destroy tabGroup #129

Open
ooobsidian opened this issue Sep 27, 2021 · 2 comments
Open

Add a way to destroy tabGroup #129

ooobsidian opened this issue Sep 27, 2021 · 2 comments

Comments

@ooobsidian
Copy link

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

@brrd
Copy link
Owner

brrd commented Oct 1, 2021

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 brrd changed the title How to control the display or not of tabGroup? Add a way to destroy tabGroup Oct 1, 2021
@brrd brrd added enhancement and removed question labels Oct 1, 2021
@ooobsidian
Copy link
Author

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants