chrome-tabs
chrome-tabs copied to clipboard
Add support for not closeable tabs
With these changes, it's possible to have tabs which are not closeable by the user. To make it easier to close them programmatically, the addTab function now returns the created element, which can be later used to remove the tab.
@SE7-KN8 Thanks so much for your contribution. After digging into it, I think I’d prefer to implement it in the reverse: keep the element in the template, but remove it if the option is passed. Would you mind making this change?
No problem! I just changed it.