added update callback method

This commit is contained in:
Fran Jurmanović
2021-06-04 17:02:38 +02:00
parent 3efef84b5b
commit f9861d3f33

View File

@@ -74,9 +74,12 @@ class BaseElement extends HTMLElement {
return html``;
};
updateCallback = (): void => {};
update = (): void => {
render(this.render(), this);
this.bindEvents();
this.updateCallback();
};
connectedCallback(): void {