mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	standard widget => collapsible widget
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user