refactoring of layout finished

This commit is contained in:
zadam
2020-02-27 10:03:14 +01:00
parent 637010577b
commit 368d0c55da
13 changed files with 82 additions and 85 deletions

View File

@@ -13,6 +13,15 @@ export default class Component {
setParent(parent) {
/** @type Component */
this.parent = parent;
return this;
}
child(component) {
component.setParent(this);
this.children.push(component);
return this;
}
async handleEvent(name, data) {