mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
Add a title to the span for hover
This commit is contained in:
parent
75b215b263
commit
57e3bf6f92
2
index.js
2
index.js
|
@ -181,6 +181,7 @@ class Tab extends EventEmitter {
|
||||||
if (this.isClosed) return;
|
if (this.isClosed) return;
|
||||||
let span = this.tabElements.title;
|
let span = this.tabElements.title;
|
||||||
span.innerHTML = title;
|
span.innerHTML = title;
|
||||||
|
span.title = title;
|
||||||
this.title = title;
|
this.title = title;
|
||||||
this.emit("title-changed", title, this);
|
this.emit("title-changed", title, this);
|
||||||
return this;
|
return this;
|
||||||
|
@ -418,3 +419,4 @@ const TabPrivate = {
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = TabGroup;
|
module.exports = TabGroup;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue