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

@@ -36,6 +36,14 @@ export default class Component {
return this;
}
addChildren(components = []) {
for (const component of components) {
this.child(component);
}
return this;
}
/** @return {Promise} */
handleEvent(name, data) {
return Promise.all([