standard widget => collapsible widget

This commit is contained in:
zadam
2020-02-02 18:46:50 +01:00
parent 27ab55d26a
commit 62a80ef016
15 changed files with 60 additions and 85 deletions

View File

@@ -3,7 +3,7 @@ import utils from '../services/utils.js';
export default class Component {
/** @param {AppContext} appContext */
constructor(appContext) {
this.componentId = `comp-${this.constructor.name}-` + utils.randomString(10);
this.componentId = `comp-${this.constructor.name}-` + utils.randomString(6);
this.appContext = appContext;
/** @type Component[] */
this.children = [];
@@ -13,8 +13,6 @@ export default class Component {
async eventReceived(name, data, sync = false) {
await this.initialized;
// console.log(`Received ${name} to ${this.componentId}`);
const fun = this[name + 'Listener'];
let propagateToChildren = true;