mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	refactoring of layout finished
This commit is contained in:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user