Add hide/show methods

This commit is contained in:
Thomas Brouard 2016-11-01 11:13:00 +01:00
parent 8f3b243a6f
commit 9fd514637c

View file

@ -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) {