mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-07 16:42:27 +08:00
19 lines
419 B
JavaScript
19 lines
419 B
JavaScript
![]() |
import BasicWidget from "./basic_widget.js";
|
||
|
|
||
|
export default class TabAwareWidget extends BasicWidget {
|
||
|
constructor(appContext) {
|
||
|
super(appContext);
|
||
|
|
||
|
/** @var {TabContext} */
|
||
|
this.tabContext = null;
|
||
|
}
|
||
|
|
||
|
// to override
|
||
|
activeTabChanged() {}
|
||
|
|
||
|
activeTabChangedListener() {
|
||
|
this.tabContext = this.appContext.getActiveTabContext();
|
||
|
|
||
|
this.activeTabChanged();
|
||
|
}
|
||
|
}
|