resetbutton & almanach edit start

This commit is contained in:
Simon Martens
2025-05-30 19:30:50 +02:00
parent d8e50b27b0
commit 8ea36da40f
28 changed files with 1789 additions and 763 deletions

View File

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