Add hide/show methods
This commit is contained in:
parent
8f3b243a6f
commit
9fd514637c
1 changed files with 10 additions and 0 deletions
10
index.js
10
index.js
|
@ -203,6 +203,16 @@ class Tab extends EventEmitter {
|
||||||
this.emit("active", this);
|
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) {
|
flash (flag) {
|
||||||
if (this.isClosed) return;
|
if (this.isClosed) return;
|
||||||
if (flag !== false) {
|
if (flag !== false) {
|
||||||
|
|
Loading…
Reference in a new issue