basic support for custom widgets

This commit is contained in:
zadam
2020-03-16 21:16:09 +01:00
parent 8ae78a9e23
commit 173030e02e
14 changed files with 99 additions and 22 deletions

View File

@@ -11,6 +11,17 @@ export default class FlexContainer extends BasicWidget {
this.attrs.style = `display: flex; flex-direction: ${direction};`;
this.children = [];
this.positionCounter = 10;
}
child(component) {
super.child(component);
component.position = this.positionCounter;
this.positionCounter += 10;
return this;
}
doRender() {