mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
Add hide/show methods
This commit is contained in:
parent
8f3b243a6f
commit
9fd514637c
10
index.js
10
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) {
|
||||
|
|
Loading…
Reference in a new issue