mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 17:25:32 +00:00
resetbutton & almanach edit start
This commit is contained in:
@@ -7,6 +7,7 @@ export class TabList extends HTMLElement {
|
||||
this.shown = -1;
|
||||
this._headings = [];
|
||||
this._contents = [];
|
||||
this._checkbox = null;
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
@@ -38,6 +39,19 @@ export class TabList extends HTMLElement {
|
||||
});
|
||||
}
|
||||
|
||||
hookupShowAll(checkbox) {
|
||||
if (checkbox) {
|
||||
this._checkbox = checkbox;
|
||||
checkbox.addEventListener("change", (event) => {
|
||||
if (event.target.checked) {
|
||||
this.showAll();
|
||||
} else {
|
||||
this.default();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
hookupEvtHandlers() {
|
||||
for (let heading of this._headings) {
|
||||
heading.addEventListener("click", this.handleTabClick.bind(this));
|
||||
|
||||
Reference in New Issue
Block a user