mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	refactor widget constructor
This commit is contained in:
		| @@ -26,15 +26,7 @@ const TPL = ` | ||||
| `; | ||||
|  | ||||
| class NoteInfoWidget extends StandardWidget { | ||||
|     /** | ||||
|      * @param {TabContext} ctx | ||||
|      * @param {object} state | ||||
|      */ | ||||
|     constructor(ctx, state) { | ||||
|         super(ctx, state); | ||||
|  | ||||
|         this.$title.text("Note info"); | ||||
|     } | ||||
|     getWidgetTitle() { return "Note info"; } | ||||
|  | ||||
|     async doRenderBody() { | ||||
|         this.$body.html(TPL); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user