diff --git a/index.js b/index.js index fe3374f..df05087 100644 --- a/index.js +++ b/index.js @@ -203,6 +203,16 @@ class Tab extends EventEmitter { this.emit("active", this); } + show () { + if (this.isClosed) return; + this.tab.classList.add("visible"); + } + + hide () { + if (this.isClosed) return; + this.tab.classList.remove("visible"); + } + flash (flag) { if (this.isClosed) return; if (flag !== false) {