mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	widgetizing tree WIP
This commit is contained in:
		| @@ -17,11 +17,13 @@ class AppContext { | ||||
|     showWidgets() { | ||||
|         const $leftPane = $("#left-pane"); | ||||
|  | ||||
|         this.noteTreeWidget = new NoteTreeWidget(this); | ||||
|  | ||||
|         this.widgets = [ | ||||
|             new GlobalButtonsWidget(this), | ||||
|             new SearchBoxWidget(this), | ||||
|             new SearchResultsWidget(this), | ||||
|             new NoteTreeWidget(this) | ||||
|             this.noteTreeWidget | ||||
|         ]; | ||||
|  | ||||
|         for (const widget of this.widgets) { | ||||
| @@ -30,6 +32,13 @@ class AppContext { | ||||
|             $leftPane.append($widget); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @return {NoteTreeWidget} | ||||
|      */ | ||||
|     getMainNoteTree() { | ||||
|         return this.noteTreeWidget; | ||||
|     } | ||||
| } | ||||
|  | ||||
| const appContext = new AppContext(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user